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