pub struct ImageFileForUpdatePackRequest {
pub asset_id: String,
pub filename: String,
pub mime_type: Option<String>,
}Expand description
Information about an image file for an update Pack request.
JSON schema
{
"description": "Information about an image file for an update Pack
request.",
"type": "object",
"required": [
"assetId",
"filename"
],
"properties": {
"assetId": {
"description": "The asset id of the Pack's image, returned by
[`#PackAssetUploadComplete`](#operation/packAssetUploadComplete)
endpoint.",
"type": "string"
},
"filename": {
"description": "The filename for the image.",
"type": "string"
},
"mimeType": {
"description": "The media type of the image being sent.",
"examples": [
"image/jpeg"
],
"type": "string"
}
},
"additionalProperties": false,
"x-schema-name": "ImageFileForUpdatePackRequest"
}Fields§
§asset_id: StringThe asset id of the Pack’s image, returned by
#PackAssetUploadComplete
endpoint.
filename: StringThe filename for the image.
mime_type: Option<String>The media type of the image being sent.
Trait Implementations§
Source§impl Clone for ImageFileForUpdatePackRequest
impl Clone for ImageFileForUpdatePackRequest
Source§fn clone(&self) -> ImageFileForUpdatePackRequest
fn clone(&self) -> ImageFileForUpdatePackRequest
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<'de> Deserialize<'de> for ImageFileForUpdatePackRequest
impl<'de> Deserialize<'de> for ImageFileForUpdatePackRequest
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<&ImageFileForUpdatePackRequest> for ImageFileForUpdatePackRequest
impl From<&ImageFileForUpdatePackRequest> for ImageFileForUpdatePackRequest
Source§fn from(value: &ImageFileForUpdatePackRequest) -> Self
fn from(value: &ImageFileForUpdatePackRequest) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ImageFileForUpdatePackRequest
impl RefUnwindSafe for ImageFileForUpdatePackRequest
impl Send for ImageFileForUpdatePackRequest
impl Sync for ImageFileForUpdatePackRequest
impl Unpin for ImageFileForUpdatePackRequest
impl UnwindSafe for ImageFileForUpdatePackRequest
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