pub struct NewStack {
pub description: Option<String>,
pub generator_id: Uuid,
pub name: String,
}Expand description
Represents a new stack to be inserted into the database.
JSON schema
{
"description": "Represents a new stack to be inserted into the database.",
"type": "object",
"required": [
"generator_id",
"name"
],
"properties": {
"description": {
"description": "Optional description of the stack.",
"type": [
"string",
"null"
]
},
"generator_id": {
"description": "Optional generator ID.",
"type": "string",
"format": "uuid"
},
"name": {
"description": "Name of the stack.",
"type": "string"
}
}
}Fields§
§description: Option<String>Optional description of the stack.
generator_id: UuidOptional generator ID.
name: StringName of the stack.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for NewStack
impl<'de> Deserialize<'de> for NewStack
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 NewStack
impl RefUnwindSafe for NewStack
impl Send for NewStack
impl Sync for NewStack
impl Unpin for NewStack
impl UnsafeUnpin for NewStack
impl UnwindSafe for NewStack
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