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