pub struct ChannelGetResponse {
pub channel: ChannelName,
pub disconnect: String,
pub link: String,
pub socket: Option<String>,
pub status: String,
pub webhook: Option<String>,
}Expand description
ChannelGetResponse
JSON schema
{
"type": "object",
"required": [
"channel",
"disconnect",
"link",
"status"
],
"properties": {
"channel": {
"$ref": "#/components/schemas/ChannelName"
},
"disconnect": {
"description": "URL for disconnecting",
"type": "string"
},
"link": {
"description": "URL for creating a link",
"type": "string"
},
"socket": {
"description": "WebSocket URL for pairing (WhatsApp)",
"type": [
"string",
"null"
]
},
"status": {
"description": "URL for checking status",
"type": "string"
},
"webhook": {
"description": "Webhook URL for platform callbacks (Telegram/Slack/Discord)",
"type": [
"string",
"null"
]
}
}
}Fields§
§channel: ChannelName§disconnect: StringURL for disconnecting
link: StringURL for creating a link
socket: Option<String>WebSocket URL for pairing (WhatsApp)
status: StringURL for checking status
webhook: Option<String>Webhook URL for platform callbacks (Telegram/Slack/Discord)
Implementations§
Source§impl ChannelGetResponse
impl ChannelGetResponse
pub fn builder() -> ChannelGetResponse
Trait Implementations§
Source§impl Clone for ChannelGetResponse
impl Clone for ChannelGetResponse
Source§fn clone(&self) -> ChannelGetResponse
fn clone(&self) -> ChannelGetResponse
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 ChannelGetResponse
impl Debug for ChannelGetResponse
Source§impl<'de> Deserialize<'de> for ChannelGetResponse
impl<'de> Deserialize<'de> for ChannelGetResponse
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<ChannelGetResponse> for ChannelGetResponse
impl From<ChannelGetResponse> for ChannelGetResponse
Source§fn from(value: ChannelGetResponse) -> Self
fn from(value: ChannelGetResponse) -> Self
Converts to this type from the input type.
Source§impl Serialize for ChannelGetResponse
impl Serialize for ChannelGetResponse
Source§impl TryFrom<ChannelGetResponse> for ChannelGetResponse
impl TryFrom<ChannelGetResponse> for ChannelGetResponse
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§fn try_from(value: ChannelGetResponse) -> Result<Self, ConversionError>
fn try_from(value: ChannelGetResponse) -> Result<Self, ConversionError>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for ChannelGetResponse
impl RefUnwindSafe for ChannelGetResponse
impl Send for ChannelGetResponse
impl Sync for ChannelGetResponse
impl Unpin for ChannelGetResponse
impl UnsafeUnpin for ChannelGetResponse
impl UnwindSafe for ChannelGetResponse
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