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