pub struct CreateAgentResponse {
pub agent: Agent,
pub initial_pak: String,
}Expand description
Response body for [create_agent]: the newly-created agent plus the
one-time initial PAK shown only at creation.
JSON schema
{
"description": "Response body for [`create_agent`]: the newly-created agent plus the\none-time initial PAK shown only at creation.",
"type": "object",
"required": [
"agent",
"initial_pak"
],
"properties": {
"agent": {
"$ref": "#/components/schemas/Agent"
},
"initial_pak": {
"type": "string"
}
}
}Fields§
§agent: Agent§initial_pak: StringImplementations§
Source§impl CreateAgentResponse
impl CreateAgentResponse
pub fn builder() -> CreateAgentResponse
Trait Implementations§
Source§impl Clone for CreateAgentResponse
impl Clone for CreateAgentResponse
Source§fn clone(&self) -> CreateAgentResponse
fn clone(&self) -> CreateAgentResponse
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 CreateAgentResponse
impl Debug for CreateAgentResponse
Source§impl<'de> Deserialize<'de> for CreateAgentResponse
impl<'de> Deserialize<'de> for CreateAgentResponse
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<CreateAgentResponse> for CreateAgentResponse
impl From<CreateAgentResponse> for CreateAgentResponse
Source§fn from(value: CreateAgentResponse) -> Self
fn from(value: CreateAgentResponse) -> Self
Converts to this type from the input type.
Source§impl Serialize for CreateAgentResponse
impl Serialize for CreateAgentResponse
Source§impl TryFrom<CreateAgentResponse> for CreateAgentResponse
impl TryFrom<CreateAgentResponse> for CreateAgentResponse
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§fn try_from(value: CreateAgentResponse) -> Result<Self, ConversionError>
fn try_from(value: CreateAgentResponse) -> Result<Self, ConversionError>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for CreateAgentResponse
impl RefUnwindSafe for CreateAgentResponse
impl Send for CreateAgentResponse
impl Sync for CreateAgentResponse
impl Unpin for CreateAgentResponse
impl UnsafeUnpin for CreateAgentResponse
impl UnwindSafe for CreateAgentResponse
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