pub struct Pack {Show 17 fields
pub categories: Vec<PublishingCategory>,
pub certified: Option<bool>,
pub cover_url: Option<String>,
pub description: PackDescription,
pub example_images: Vec<PackImageFile>,
pub featured_doc_status: Option<FeaturedDocStatus>,
pub id: f64,
pub logo_url: Option<String>,
pub name: PackName,
pub overall_rate_limit: Option<PackRateLimit>,
pub per_connection_rate_limit: Option<PackRateLimit>,
pub privacy_policy_url: Option<String>,
pub short_description: PackShortDescription,
pub source_code_visibility: Option<PackSourceCodeVisibility>,
pub support_email: Option<PackSupportEmail>,
pub terms_of_service_url: Option<String>,
pub workspace_id: String,
}
Expand description
Details about a Pack.
JSON schema
{
"description": "Details about a Pack.",
"type": "object",
"required": [
"categories",
"description",
"id",
"name",
"shortDescription",
"workspaceId"
],
"properties": {
"categories": {
"description": "Publishing categories associated with this Pack.",
"type": "array",
"items": {
"$ref": "#/components/schemas/PublishingCategory"
}
},
"certified": {
"description": "Denotes if the pack is certified by Coda.",
"type": "boolean"
},
"coverUrl": {
"description": "The link to the cover photo of the Pack.",
"type": "string",
"format": "url"
},
"description": {
"description": "The full description of the Pack.",
"examples": [
"This Pack allows users to calculate the surface area and volume
of a few common 3D shapes, like cubes and pyramids."
],
"type": "string",
"maxLength": 8192
},
"exampleImages": {
"description": "The example images for the Pack.",
"type": "array",
"items": {
"$ref": "#/components/schemas/PackImageFile"
}
},
"featuredDocStatus": {
"$ref": "#/components/schemas/FeaturedDocStatus"
},
"id": {
"description": "ID of the Pack.",
"examples": [
1003
],
"type": "number"
},
"logoUrl": {
"description": "The link to the logo of the Pack.",
"type": "string",
"format": "url"
},
"name": {
"description": "The name of the Pack.",
"examples": [
"Cool Geometry Formulas"
],
"type": "string",
"maxLength": 128
},
"overallRateLimit": {
"$ref": "#/components/schemas/PackRateLimit"
},
"perConnectionRateLimit": {
"$ref": "#/components/schemas/PackRateLimit"
},
"privacyPolicyUrl": {
"description": "A Privacy Policy URL for the Pack.",
"type": "string",
"format": "url",
"maxLength": 512
},
"shortDescription": {
"description": "A short version of the description of the Pack.",
"examples": [
"Calculate cool geometric formulas like surface area."
],
"type": "string",
"maxLength": 256
},
"sourceCodeVisibility": {
"$ref": "#/components/schemas/PackSourceCodeVisibility"
},
"supportEmail": {
"description": "A contact email for the Pack.",
"examples": [
"user@email.com"
],
"type": "string",
"maxLength": 512
},
"termsOfServiceUrl": {
"description": "A Terms of Service URL for the Pack.",
"type": "string",
"format": "url",
"maxLength": 512
},
"workspaceId": {
"description": "The parent workspace for the Pack.",
"examples": [
"ws-asdf"
],
"type": "string"
}
},
"additionalProperties": false,
"x-schema-name": "Pack"
}
Fields§
§categories: Vec<PublishingCategory>
Publishing categories associated with this Pack.
certified: Option<bool>
Denotes if the pack is certified by Coda.
cover_url: Option<String>
The link to the cover photo of the Pack.
description: PackDescription
The full description of the Pack.
example_images: Vec<PackImageFile>
The example images for the Pack.
featured_doc_status: Option<FeaturedDocStatus>
§id: f64
§logo_url: Option<String>
The link to the logo of the Pack.
name: PackName
The name of the Pack.
overall_rate_limit: Option<PackRateLimit>
§per_connection_rate_limit: Option<PackRateLimit>
§privacy_policy_url: Option<String>
A Privacy Policy URL for the Pack.
short_description: PackShortDescription
A short version of the description of the Pack.
source_code_visibility: Option<PackSourceCodeVisibility>
§support_email: Option<PackSupportEmail>
A contact email for the Pack.
terms_of_service_url: Option<String>
A Terms of Service URL for the Pack.
workspace_id: String
The parent workspace for the Pack.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Pack
impl<'de> Deserialize<'de> for Pack
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
Auto Trait Implementations§
impl Freeze for Pack
impl RefUnwindSafe for Pack
impl Send for Pack
impl Sync for Pack
impl Unpin for Pack
impl UnwindSafe for Pack
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