pub struct PackAssetUploadInfo {
pub headers: HashMap<String, String>,
pub pack_asset_uploaded_path_name: String,
pub upload_url: String,
}
Expand description
Information indicating where to upload the Pack asset, and an endpoint to mark the upload as complete.
JSON schema
{
"description": "Information indicating where to upload the Pack asset,
and an endpoint to mark the upload as complete.",
"type": "object",
"required": [
"headers",
"packAssetUploadedPathName",
"uploadUrl"
],
"properties": {
"headers": {
"description": "Key-value pairs of authorization headers to include
in the upload request.",
"examples": [
"{\"header1\": \"value1\"}"
],
"type": "object",
"additionalProperties": {
"type": "string"
}
},
"packAssetUploadedPathName": {
"description": "An endpoint to mark the upload as complete.",
"examples": [
"/packs/123/assets/e23fcb5e564f08b71183d424c2c380c0"
],
"type": "string"
},
"uploadUrl": {
"description": "A signed URL to be used for uploading a Pack
asset.",
"examples": [
"https://coda-us-west-2-prod-blobs-upload.s3-accelerate.amazonaws.com/packs/123/assets/logo/e23fcb5e564f08b71183d424c2c380c0"
],
"type": "string",
"format": "url"
}
},
"additionalProperties": false,
"x-schema-name": "PackAssetUploadInfo"
}
Fields§
§headers: HashMap<String, String>
Key-value pairs of authorization headers to include in the upload request.
pack_asset_uploaded_path_name: String
An endpoint to mark the upload as complete.
upload_url: String
A signed URL to be used for uploading a Pack asset.
Trait Implementations§
Source§impl Clone for PackAssetUploadInfo
impl Clone for PackAssetUploadInfo
Source§fn clone(&self) -> PackAssetUploadInfo
fn clone(&self) -> PackAssetUploadInfo
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 PackAssetUploadInfo
impl Debug for PackAssetUploadInfo
Source§impl<'de> Deserialize<'de> for PackAssetUploadInfo
impl<'de> Deserialize<'de> for PackAssetUploadInfo
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<&PackAssetUploadInfo> for PackAssetUploadInfo
impl From<&PackAssetUploadInfo> for PackAssetUploadInfo
Source§fn from(value: &PackAssetUploadInfo) -> Self
fn from(value: &PackAssetUploadInfo) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for PackAssetUploadInfo
impl RefUnwindSafe for PackAssetUploadInfo
impl Send for PackAssetUploadInfo
impl Sync for PackAssetUploadInfo
impl Unpin for PackAssetUploadInfo
impl UnwindSafe for PackAssetUploadInfo
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