pub struct Create;
Expand description
Create an image.
§Errors:
400 - BadRequest
if the request is invalid.401 - Unauthorized
if authorization is not valid.403 - Forbidden
if the user does not have sufficient permission to perform the action.
Trait Implementations§
Source§impl ApiEndpoint for Create
impl ApiEndpoint for Create
Source§type Req = ImageCreateRequest
type Req = ImageCreateRequest
The request type for this endpoint.
Source§type Res = CreateResponse<ImageId>
type Res = CreateResponse<ImageId>
The response type for this endpoint.
Source§type Path = ImageCreatePath
type Path = ImageCreatePath
The path type for this endpoint.
Source§type Err = MetadataNotFound
type Err = MetadataNotFound
The (inner) error type for this endpoint.
Auto Trait Implementations§
impl Freeze for Create
impl RefUnwindSafe for Create
impl Send for Create
impl Sync for Create
impl Unpin for Create
impl UnwindSafe for Create
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more