pub enum AgentMessageInputContent {
InputText {
text: String,
},
EncryptedContent {
encrypted_content: String,
},
}Expand description
AgentMessageInputContent
JSON schema
{
"oneOf": [
{
"title": "InputTextAgentMessageInputContent",
"type": "object",
"required": [
"text",
"type"
],
"properties": {
"text": {
"type": "string"
},
"type": {
"title": "InputTextAgentMessageInputContentType",
"type": "string",
"enum": [
"input_text"
]
}
}
},
{
"title": "EncryptedContentAgentMessageInputContent",
"type": "object",
"required": [
"encrypted_content",
"type"
],
"properties": {
"encrypted_content": {
"type": "string"
},
"type": {
"title": "EncryptedContentAgentMessageInputContentType",
"type": "string",
"enum": [
"encrypted_content"
]
}
}
}
]
}Variants§
InputText
InputTextAgentMessageInputContent
EncryptedContent
EncryptedContentAgentMessageInputContent
Trait Implementations§
Source§impl Clone for AgentMessageInputContent
impl Clone for AgentMessageInputContent
Source§fn clone(&self) -> AgentMessageInputContent
fn clone(&self) -> AgentMessageInputContent
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 AgentMessageInputContent
impl Debug for AgentMessageInputContent
Source§impl<'de> Deserialize<'de> for AgentMessageInputContent
impl<'de> Deserialize<'de> for AgentMessageInputContent
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
Auto Trait Implementations§
impl Freeze for AgentMessageInputContent
impl RefUnwindSafe for AgentMessageInputContent
impl Send for AgentMessageInputContent
impl Sync for AgentMessageInputContent
impl Unpin for AgentMessageInputContent
impl UnsafeUnpin for AgentMessageInputContent
impl UnwindSafe for AgentMessageInputContent
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