pub struct ChannelLinkResponse {Show 13 fields
pub action: Option<ChannelLinkResponseAction>,
pub agent_name: Option<String>,
pub agent_wallet: String,
pub channel: ChannelName,
pub code: String,
pub created_at: f64,
pub expires_at: f64,
pub hai_id: Option<String>,
pub mode: Option<ChannelLinkResponseMode>,
pub privacy: Option<ChannelLinkResponsePrivacy>,
pub scope: ChannelScope,
pub url: Option<String>,
pub user_address: String,
}Expand description
ChannelLinkResponse
JSON schema
{
"type": "object",
"required": [
"agentWallet",
"channel",
"code",
"createdAt",
"expiresAt",
"scope",
"userAddress"
],
"properties": {
"action": {
"type": "object",
"properties": {
"command": {
"type": "string"
},
"label": {
"type": "string"
},
"socket": {
"type": "string"
},
"type": {
"type": "string",
"enum": [
"redirect",
"websocket",
"oauth"
]
},
"url": {
"type": [
"string",
"null"
]
}
}
},
"agentName": {
"type": "string"
},
"agentWallet": {
"type": "string"
},
"channel": {
"$ref": "#/components/schemas/ChannelName"
},
"code": {
"description": "Short-lived linking code (10 min TTL)",
"type": "string"
},
"createdAt": {
"description": "Unix timestamp (ms)",
"type": "number"
},
"expiresAt": {
"description": "Unix timestamp (ms)",
"type": "number"
},
"haiId": {
"type": "string"
},
"mode": {
"type": "string",
"enum": [
"user",
"guild"
]
},
"privacy": {
"type": "string",
"enum": [
"public",
"private"
]
},
"scope": {
"$ref": "#/components/schemas/ChannelScope"
},
"url": {
"description": "URL the user should visit to complete linking",
"type": [
"string",
"null"
]
},
"userAddress": {
"type": "string"
}
}
}Fields§
§action: Option<ChannelLinkResponseAction>§agent_name: Option<String>§agent_wallet: String§channel: ChannelName§code: StringShort-lived linking code (10 min TTL)
created_at: f64Unix timestamp (ms)
expires_at: f64Unix timestamp (ms)
hai_id: Option<String>§mode: Option<ChannelLinkResponseMode>§privacy: Option<ChannelLinkResponsePrivacy>§scope: ChannelScope§url: Option<String>URL the user should visit to complete linking
user_address: StringImplementations§
Source§impl ChannelLinkResponse
impl ChannelLinkResponse
pub fn builder() -> ChannelLinkResponse
Trait Implementations§
Source§impl Clone for ChannelLinkResponse
impl Clone for ChannelLinkResponse
Source§fn clone(&self) -> ChannelLinkResponse
fn clone(&self) -> ChannelLinkResponse
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 ChannelLinkResponse
impl Debug for ChannelLinkResponse
Source§impl<'de> Deserialize<'de> for ChannelLinkResponse
impl<'de> Deserialize<'de> for ChannelLinkResponse
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<ChannelLinkResponse> for ChannelLinkResponse
impl From<ChannelLinkResponse> for ChannelLinkResponse
Source§fn from(value: ChannelLinkResponse) -> Self
fn from(value: ChannelLinkResponse) -> Self
Converts to this type from the input type.
Source§impl Serialize for ChannelLinkResponse
impl Serialize for ChannelLinkResponse
Source§impl TryFrom<ChannelLinkResponse> for ChannelLinkResponse
impl TryFrom<ChannelLinkResponse> for ChannelLinkResponse
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§fn try_from(value: ChannelLinkResponse) -> Result<Self, ConversionError>
fn try_from(value: ChannelLinkResponse) -> Result<Self, ConversionError>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for ChannelLinkResponse
impl RefUnwindSafe for ChannelLinkResponse
impl Send for ChannelLinkResponse
impl Sync for ChannelLinkResponse
impl Unpin for ChannelLinkResponse
impl UnsafeUnpin for ChannelLinkResponse
impl UnwindSafe for ChannelLinkResponse
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