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