pub struct PackSourceCode {
pub filename: String,
pub url: String,
}
Expand description
Details about a Pack’s source code.
JSON schema
{
"description": "Details about a Pack's source code.",
"type": "object",
"required": [
"filename",
"url"
],
"properties": {
"filename": {
"description": "name of the file",
"examples": [
"main.ts"
],
"type": "string"
},
"url": {
"description": "The URL to download the source code from",
"examples": [
"https://coda-us-west-2-prod-packs.s3.us-west-2.amazonaws.com/packs/123/1/main.ts"
],
"type": "string"
}
},
"additionalProperties": false,
"x-schema-name": "PackSourceCode"
}
Fields§
§filename: String
name of the file
url: String
The URL to download the source code from
Trait Implementations§
Source§impl Clone for PackSourceCode
impl Clone for PackSourceCode
Source§fn clone(&self) -> PackSourceCode
fn clone(&self) -> PackSourceCode
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 PackSourceCode
impl Debug for PackSourceCode
Source§impl<'de> Deserialize<'de> for PackSourceCode
impl<'de> Deserialize<'de> for PackSourceCode
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<&PackSourceCode> for PackSourceCode
impl From<&PackSourceCode> for PackSourceCode
Source§fn from(value: &PackSourceCode) -> Self
fn from(value: &PackSourceCode) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for PackSourceCode
impl RefUnwindSafe for PackSourceCode
impl Send for PackSourceCode
impl Sync for PackSourceCode
impl Unpin for PackSourceCode
impl UnwindSafe for PackSourceCode
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