pub struct NewStackAnnotation {
pub key: String,
pub stack_id: Uuid,
pub value: String,
}Expand description
Represents a new stack annotation to be inserted into the database.
JSON schema
{
"description": "Represents a new stack annotation to be inserted into the database.",
"type": "object",
"required": [
"key",
"stack_id",
"value"
],
"properties": {
"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§
§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 NewStackAnnotation
impl NewStackAnnotation
pub fn builder() -> NewStackAnnotation
Trait Implementations§
Source§impl Clone for NewStackAnnotation
impl Clone for NewStackAnnotation
Source§fn clone(&self) -> NewStackAnnotation
fn clone(&self) -> NewStackAnnotation
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 NewStackAnnotation
impl Debug for NewStackAnnotation
Source§impl<'de> Deserialize<'de> for NewStackAnnotation
impl<'de> Deserialize<'de> for NewStackAnnotation
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<NewStackAnnotation> for NewStackAnnotation
impl From<NewStackAnnotation> for NewStackAnnotation
Source§fn from(value: NewStackAnnotation) -> Self
fn from(value: NewStackAnnotation) -> Self
Converts to this type from the input type.
Source§impl Serialize for NewStackAnnotation
impl Serialize for NewStackAnnotation
Source§impl TryFrom<NewStackAnnotation> for NewStackAnnotation
impl TryFrom<NewStackAnnotation> for NewStackAnnotation
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§fn try_from(value: NewStackAnnotation) -> Result<Self, ConversionError>
fn try_from(value: NewStackAnnotation) -> Result<Self, ConversionError>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for NewStackAnnotation
impl RefUnwindSafe for NewStackAnnotation
impl Send for NewStackAnnotation
impl Sync for NewStackAnnotation
impl Unpin for NewStackAnnotation
impl UnsafeUnpin for NewStackAnnotation
impl UnwindSafe for NewStackAnnotation
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