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