pub struct ChannelLinkRequest {
pub agent_name: Option<String>,
pub agent_wallet: String,
pub hai_id: Option<String>,
pub mode: ChannelLinkRequestMode,
pub privacy: ChannelLinkRequestPrivacy,
pub scope: Option<ChannelScope>,
pub user_address: Option<String>,
}Expand description
ChannelLinkRequest
JSON schema
{
"type": "object",
"required": [
"agentWallet"
],
"properties": {
"agentName": {
"description": "Display name for the agent on the channel",
"type": "string"
},
"agentWallet": {
"description": "Agent wallet address to link",
"type": "string"
},
"haiId": {
"description": "Required when scope is local.",
"type": "string"
},
"mode": {
"description": "Linking mode (guild for Slack/Discord server-level linking)",
"default": "user",
"type": "string",
"enum": [
"user",
"guild"
]
},
"privacy": {
"default": "public",
"type": "string",
"enum": [
"public",
"private"
]
},
"scope": {
"$ref": "#/components/schemas/ChannelScope"
},
"userAddress": {
"description": "User wallet address (inferred from x-session-user-address header if omitted)",
"type": "string"
}
}
}Fields§
§agent_name: Option<String>Display name for the agent on the channel
agent_wallet: StringAgent wallet address to link
hai_id: Option<String>Required when scope is local.
mode: ChannelLinkRequestModeLinking mode (guild for Slack/Discord server-level linking)
privacy: ChannelLinkRequestPrivacy§scope: Option<ChannelScope>§user_address: Option<String>User wallet address (inferred from x-session-user-address header if omitted)
Implementations§
Source§impl ChannelLinkRequest
impl ChannelLinkRequest
pub fn builder() -> ChannelLinkRequest
Trait Implementations§
Source§impl Clone for ChannelLinkRequest
impl Clone for ChannelLinkRequest
Source§fn clone(&self) -> ChannelLinkRequest
fn clone(&self) -> ChannelLinkRequest
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 ChannelLinkRequest
impl Debug for ChannelLinkRequest
Source§impl<'de> Deserialize<'de> for ChannelLinkRequest
impl<'de> Deserialize<'de> for ChannelLinkRequest
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<ChannelLinkRequest> for ChannelLinkRequest
impl From<ChannelLinkRequest> for ChannelLinkRequest
Source§fn from(value: ChannelLinkRequest) -> Self
fn from(value: ChannelLinkRequest) -> Self
Converts to this type from the input type.
Source§impl Serialize for ChannelLinkRequest
impl Serialize for ChannelLinkRequest
Source§impl TryFrom<ChannelLinkRequest> for ChannelLinkRequest
impl TryFrom<ChannelLinkRequest> for ChannelLinkRequest
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§fn try_from(value: ChannelLinkRequest) -> Result<Self, ConversionError>
fn try_from(value: ChannelLinkRequest) -> Result<Self, ConversionError>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for ChannelLinkRequest
impl RefUnwindSafe for ChannelLinkRequest
impl Send for ChannelLinkRequest
impl Sync for ChannelLinkRequest
impl Unpin for ChannelLinkRequest
impl UnsafeUnpin for ChannelLinkRequest
impl UnwindSafe for ChannelLinkRequest
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