pub struct ChannelRoute {
pub account_id: String,
pub agent_wallet: String,
pub channel: ChannelName,
pub created_at: f64,
pub hai_id: Option<String>,
pub id: String,
pub label: Option<String>,
pub metadata: Map<String, Value>,
pub scope: ChannelScope,
pub thread_id: String,
pub updated_at: f64,
pub user_address: String,
}Expand description
ChannelRoute
JSON schema
{
"type": "object",
"required": [
"accountId",
"agentWallet",
"channel",
"createdAt",
"id",
"scope",
"threadId",
"updatedAt",
"userAddress"
],
"properties": {
"accountId": {
"description": "Platform-specific account identifier (chat ID, channel ID, etc.)",
"type": "string"
},
"agentWallet": {
"type": "string"
},
"channel": {
"$ref": "#/components/schemas/ChannelName"
},
"createdAt": {
"type": "number"
},
"haiId": {
"type": "string"
},
"id": {
"type": "string"
},
"label": {
"type": "string"
},
"metadata": {
"type": "object",
"additionalProperties": true
},
"scope": {
"$ref": "#/components/schemas/ChannelScope"
},
"threadId": {
"description": "Platform-specific thread/conversation identifier",
"type": "string"
},
"updatedAt": {
"type": "number"
},
"userAddress": {
"type": "string"
}
}
}Fields§
§account_id: StringPlatform-specific account identifier (chat ID, channel ID, etc.)
agent_wallet: String§channel: ChannelName§created_at: f64§hai_id: Option<String>§id: String§label: Option<String>§metadata: Map<String, Value>§scope: ChannelScope§thread_id: StringPlatform-specific thread/conversation identifier
updated_at: f64§user_address: StringImplementations§
Source§impl ChannelRoute
impl ChannelRoute
pub fn builder() -> ChannelRoute
Trait Implementations§
Source§impl Clone for ChannelRoute
impl Clone for ChannelRoute
Source§fn clone(&self) -> ChannelRoute
fn clone(&self) -> ChannelRoute
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 ChannelRoute
impl Debug for ChannelRoute
Source§impl<'de> Deserialize<'de> for ChannelRoute
impl<'de> Deserialize<'de> for ChannelRoute
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<ChannelRoute> for ChannelRoute
impl From<ChannelRoute> for ChannelRoute
Source§fn from(value: ChannelRoute) -> Self
fn from(value: ChannelRoute) -> Self
Converts to this type from the input type.
Source§impl Serialize for ChannelRoute
impl Serialize for ChannelRoute
Source§impl TryFrom<ChannelRoute> for ChannelRoute
impl TryFrom<ChannelRoute> for ChannelRoute
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§fn try_from(value: ChannelRoute) -> Result<Self, ConversionError>
fn try_from(value: ChannelRoute) -> Result<Self, ConversionError>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for ChannelRoute
impl RefUnwindSafe for ChannelRoute
impl Send for ChannelRoute
impl Sync for ChannelRoute
impl Unpin for ChannelRoute
impl UnsafeUnpin for ChannelRoute
impl UnwindSafe for ChannelRoute
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