pub struct Channel {
pub occupied: Option<bool>,
pub user_count: Option<i32>,
pub subscription_count: Option<i32>,
}
Expand description
This represents the data received upon querying the state of a Pusher channel.
Fields§
§occupied: Option<bool>
Is the channel occupied?
user_count: Option<i32>
The number of users presently subscribed to the channel
subscription_count: Option<i32>
For accounts with subscription-counting enabled, the number of users currently subscribed to the channel.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Channel
impl<'de> Deserialize<'de> for Channel
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
Auto Trait Implementations§
impl Freeze for Channel
impl RefUnwindSafe for Channel
impl Send for Channel
impl Sync for Channel
impl Unpin for Channel
impl UnwindSafe for Channel
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