pub struct ChannelResponse {
pub provider: String,
pub sender_id: String,
}Expand description
Channel mapping returned by GET/POST endpoints.
JSON schema
{
"title": "ChannelResponse",
"description": "Channel mapping returned by GET/POST endpoints.",
"type": "object",
"required": [
"provider",
"sender_id"
],
"properties": {
"provider": {
"title": "Provider",
"type": "string"
},
"sender_id": {
"title": "Sender Id",
"type": "string"
}
}
}Fields§
§provider: String§sender_id: StringTrait Implementations§
Source§impl Clone for ChannelResponse
impl Clone for ChannelResponse
Source§fn clone(&self) -> ChannelResponse
fn clone(&self) -> ChannelResponse
Returns a duplicate of the value. Read more
1.0.0 · 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 ChannelResponse
impl Debug for ChannelResponse
Source§impl<'de> Deserialize<'de> for ChannelResponse
impl<'de> Deserialize<'de> for ChannelResponse
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<&ChannelResponse> for ChannelResponse
impl From<&ChannelResponse> for ChannelResponse
Source§fn from(value: &ChannelResponse) -> Self
fn from(value: &ChannelResponse) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ChannelResponse
impl RefUnwindSafe for ChannelResponse
impl Send for ChannelResponse
impl Sync for ChannelResponse
impl Unpin for ChannelResponse
impl UnsafeUnpin for ChannelResponse
impl UnwindSafe for ChannelResponse
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