pub struct StackLabel {
pub id: Uuid,
pub label: String,
pub stack_id: Uuid,
}Expand description
Represents a stack label in the database.
JSON schema
{
"description": "Represents a stack label in the database.",
"type": "object",
"required": [
"id",
"label",
"stack_id"
],
"properties": {
"id": {
"description": "Unique identifier for the stack label.",
"type": "string",
"format": "uuid"
},
"label": {
"description": "The label text (max 64 characters, no whitespace).",
"type": "string"
},
"stack_id": {
"description": "ID of the stack this label is associated with.",
"type": "string",
"format": "uuid"
}
}
}Fields§
§id: UuidUnique identifier for the stack label.
label: StringThe label text (max 64 characters, no whitespace).
stack_id: UuidID of the stack this label is associated with.
Implementations§
Source§impl StackLabel
impl StackLabel
pub fn builder() -> StackLabel
Trait Implementations§
Source§impl Clone for StackLabel
impl Clone for StackLabel
Source§fn clone(&self) -> StackLabel
fn clone(&self) -> StackLabel
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 StackLabel
impl Debug for StackLabel
Source§impl<'de> Deserialize<'de> for StackLabel
impl<'de> Deserialize<'de> for StackLabel
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<StackLabel> for StackLabel
impl From<StackLabel> for StackLabel
Source§fn from(value: StackLabel) -> Self
fn from(value: StackLabel) -> Self
Converts to this type from the input type.
Source§impl Serialize for StackLabel
impl Serialize for StackLabel
Source§impl TryFrom<StackLabel> for StackLabel
impl TryFrom<StackLabel> for StackLabel
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§fn try_from(value: StackLabel) -> Result<Self, ConversionError>
fn try_from(value: StackLabel) -> Result<Self, ConversionError>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for StackLabel
impl RefUnwindSafe for StackLabel
impl Send for StackLabel
impl Sync for StackLabel
impl Unpin for StackLabel
impl UnsafeUnpin for StackLabel
impl UnwindSafe for StackLabel
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