pub struct ViewChannelRequest {
pub channel_id: String,
pub prev_channel_id: Option<String>,
}
Fields§
§channel_id: String
The channel ID that is being viewed. Use a blank string to indicate that all channels have lost focus.
prev_channel_id: Option<String>
The channel ID of the previous channel, used when switching channels. Providing this ID will cause push notifications to clear on the channel being switched to.
Implementations§
Source§impl ViewChannelRequest
impl ViewChannelRequest
pub fn new(channel_id: String) -> ViewChannelRequest
Trait Implementations§
Source§impl Clone for ViewChannelRequest
impl Clone for ViewChannelRequest
Source§fn clone(&self) -> ViewChannelRequest
fn clone(&self) -> ViewChannelRequest
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for ViewChannelRequest
impl Debug for ViewChannelRequest
Source§impl Default for ViewChannelRequest
impl Default for ViewChannelRequest
Source§fn default() -> ViewChannelRequest
fn default() -> ViewChannelRequest
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ViewChannelRequest
impl<'de> Deserialize<'de> for ViewChannelRequest
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 PartialEq for ViewChannelRequest
impl PartialEq for ViewChannelRequest
Source§impl Serialize for ViewChannelRequest
impl Serialize for ViewChannelRequest
impl StructuralPartialEq for ViewChannelRequest
Auto Trait Implementations§
impl Freeze for ViewChannelRequest
impl RefUnwindSafe for ViewChannelRequest
impl Send for ViewChannelRequest
impl Sync for ViewChannelRequest
impl Unpin for ViewChannelRequest
impl UnwindSafe for ViewChannelRequest
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