#[non_exhaustive]pub struct BlockUserRequest {
pub expire_at: i64,
pub user: String,
}Expand description
BlockUserRequest blocks a user: the user is disconnected and can not connect again until unblocked or the block expires. Centrifugo PRO only.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.expire_at: i64The Unix time in seconds when the block expires. Optional, but a reasonably small value is recommended to keep the set of blocked users small.
user: StringThe ID of the user to block. Required.
Implementations§
Trait Implementations§
Source§impl Clone for BlockUserRequest
impl Clone for BlockUserRequest
Source§impl Debug for BlockUserRequest
impl Debug for BlockUserRequest
Source§impl<'de> Deserialize<'de> for BlockUserRequest
impl<'de> Deserialize<'de> for BlockUserRequest
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 Request for BlockUserRequest
impl Request for BlockUserRequest
Auto Trait Implementations§
impl Freeze for BlockUserRequest
impl RefUnwindSafe for BlockUserRequest
impl Send for BlockUserRequest
impl Sync for BlockUserRequest
impl Unpin for BlockUserRequest
impl UnsafeUnpin for BlockUserRequest
impl UnwindSafe for BlockUserRequest
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