Struct twitch_api::helix::moderation::BlockedTerm
source · [−]#[non_exhaustive]pub struct BlockedTerm {
pub broadcaster_id: UserId,
pub created_at: Timestamp,
pub expires_at: Option<Timestamp>,
pub id: BlockedTermId,
pub moderator_id: UserId,
pub text: String,
pub updated_at: Timestamp,
}
helix
only.Expand description
A blocked term in automod
Fields (Non-exhaustive)
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.broadcaster_id: UserId
The broadcaster that owns the list of blocked terms.
created_at: Timestamp
The UTC date and time (in RFC3339 format) of when the term was blocked.
expires_at: Option<Timestamp>
The UTC date and time (in RFC3339 format) of when the blocked term is set to expire. After the block expires, user’s will be able to use the term in the broadcaster’s chat room.
This field is null if the term was added manually or was permanently blocked by AutoMod.
id: BlockedTermId
An ID that uniquely identifies this blocked term.
moderator_id: UserId
The moderator that blocked the word or phrase from being used in the broadcaster’s chat room.
text: String
The blocked word or phrase.
updated_at: Timestamp
The UTC date and time (in RFC3339 format) of when the term was updated.
When the term is added, this timestamp is the same as created_at. The timestamp changes as AutoMod continues to deny the term.
Trait Implementations
sourceimpl Clone for BlockedTerm
impl Clone for BlockedTerm
sourcefn clone(&self) -> BlockedTerm
fn clone(&self) -> BlockedTerm
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresourceimpl Debug for BlockedTerm
impl Debug for BlockedTerm
sourceimpl<'de> Deserialize<'de> for BlockedTerm
impl<'de> Deserialize<'de> for BlockedTerm
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>,
sourceimpl PartialEq<BlockedTerm> for BlockedTerm
impl PartialEq<BlockedTerm> for BlockedTerm
sourcefn eq(&self, other: &BlockedTerm) -> bool
fn eq(&self, other: &BlockedTerm) -> bool
sourceimpl Serialize for BlockedTerm
impl Serialize for BlockedTerm
impl Eq for BlockedTerm
impl StructuralEq for BlockedTerm
impl StructuralPartialEq for BlockedTerm
Auto Trait Implementations
impl RefUnwindSafe for BlockedTerm
impl Send for BlockedTerm
impl Sync for BlockedTerm
impl Unpin for BlockedTerm
impl UnwindSafe for BlockedTerm
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
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
key
and return true
if they are equal.