Struct twitch_api::helix::moderation::ban_user::BanUser
source · [−]#[non_exhaustive]pub struct BanUser {
pub broadcaster_id: UserId,
pub created_at: Timestamp,
pub end_time: Option<Timestamp>,
pub moderator_id: UserId,
pub user_id: UserId,
}
Available on crate feature
helix
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.broadcaster_id: UserId
The broadcaster whose chat room the user was banned from chatting in.
created_at: Timestamp
The UTC date and time (in RFC3999 format) when the ban was created.
end_time: Option<Timestamp>
The UTC date and time (in RFC3339 format) that the timeout will end. Is null if the user was banned instead of put in a timeout.
moderator_id: UserId
The moderator that banned or put the user in the timeout.
user_id: UserId
The user that was banned or was put in a timeout.
Trait Implementations
sourceimpl<'de> Deserialize<'de> for BanUser
impl<'de> Deserialize<'de> for BanUser
sourcefn 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
impl Eq for BanUser
impl StructuralEq for BanUser
impl StructuralPartialEq for BanUser
Auto Trait Implementations
impl RefUnwindSafe for BanUser
impl Send for BanUser
impl Sync for BanUser
impl Unpin for BanUser
impl UnwindSafe for BanUser
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
sourcefn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.