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