pub struct UploadPackAssetRequest {
pub filename: String,
pub image_hash: String,
pub mime_type: String,
pub pack_asset_type: PackAssetType,
}
Expand description
Payload for a Pack asset upload.
JSON schema
{
"description": "Payload for a Pack asset upload.",
"type": "object",
"required": [
"filename",
"imageHash",
"mimeType",
"packAssetType"
],
"properties": {
"filename": {
"examples": [
"image.jpg"
],
"type": "string"
},
"imageHash": {
"description": "The SHA-256 hash of the image to be uploaded.",
"examples": [
"f0e4c2f76c58916ec258f246851bea091d14d4247a2fc3e18694461b1816e13b"
],
"type": "string"
},
"mimeType": {
"description": "The media type of the image being sent.",
"examples": [
"image/jpeg"
],
"type": "string"
},
"packAssetType": {
"$ref": "#/components/schemas/PackAssetType"
}
},
"additionalProperties": false,
"x-schema-name": "UploadPackAssetRequest"
}
Fields§
§filename: String
§image_hash: String
The SHA-256 hash of the image to be uploaded.
mime_type: String
The media type of the image being sent.
pack_asset_type: PackAssetType
Trait Implementations§
Source§impl Clone for UploadPackAssetRequest
impl Clone for UploadPackAssetRequest
Source§fn clone(&self) -> UploadPackAssetRequest
fn clone(&self) -> UploadPackAssetRequest
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 Debug for UploadPackAssetRequest
impl Debug for UploadPackAssetRequest
Source§impl<'de> Deserialize<'de> for UploadPackAssetRequest
impl<'de> Deserialize<'de> for UploadPackAssetRequest
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<&UploadPackAssetRequest> for UploadPackAssetRequest
impl From<&UploadPackAssetRequest> for UploadPackAssetRequest
Source§fn from(value: &UploadPackAssetRequest) -> Self
fn from(value: &UploadPackAssetRequest) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for UploadPackAssetRequest
impl RefUnwindSafe for UploadPackAssetRequest
impl Send for UploadPackAssetRequest
impl Sync for UploadPackAssetRequest
impl Unpin for UploadPackAssetRequest
impl UnwindSafe for UploadPackAssetRequest
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