pub struct CreatePackRequest {
pub description: Option<String>,
pub name: Option<String>,
pub source_pack_id: Option<f64>,
pub workspace_id: Option<String>,
}
Expand description
Payload for creating a Pack.
JSON schema
{
"description": "Payload for creating a Pack.",
"type": "object",
"properties": {
"description": {
"description": "A brief description of the Pack.",
"examples": [
"Common trigonometric functions."
],
"type": "string"
},
"name": {
"description": "The name for the Pack.",
"examples": [
"Trigonometry"
],
"type": "string"
},
"sourcePackId": {
"description": "The ID of the new Pack's source, if this new Pack
was forked.",
"examples": [
10029
],
"type": [
"number",
"null"
]
},
"workspaceId": {
"description": "The parent workspace for the Pack. If unspecified,
the user's default workspace will be used.",
"examples": [
"ws-asdf"
],
"type": "string"
}
},
"additionalProperties": false,
"x-schema-name": "CreatePackRequest"
}
Fields§
§description: Option<String>
A brief description of the Pack.
name: Option<String>
The name for the Pack.
source_pack_id: Option<f64>
The ID of the new Pack’s source, if this new Pack was forked.
workspace_id: Option<String>
The parent workspace for the Pack. If unspecified, the user’s default workspace will be used.
Trait Implementations§
Source§impl Clone for CreatePackRequest
impl Clone for CreatePackRequest
Source§fn clone(&self) -> CreatePackRequest
fn clone(&self) -> CreatePackRequest
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 CreatePackRequest
impl Debug for CreatePackRequest
Source§impl Default for CreatePackRequest
impl Default for CreatePackRequest
Source§impl<'de> Deserialize<'de> for CreatePackRequest
impl<'de> Deserialize<'de> for CreatePackRequest
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<&CreatePackRequest> for CreatePackRequest
impl From<&CreatePackRequest> for CreatePackRequest
Source§fn from(value: &CreatePackRequest) -> Self
fn from(value: &CreatePackRequest) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for CreatePackRequest
impl RefUnwindSafe for CreatePackRequest
impl Send for CreatePackRequest
impl Sync for CreatePackRequest
impl Unpin for CreatePackRequest
impl UnwindSafe for CreatePackRequest
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