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