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