#[non_exhaustive]pub struct BlockEntry {
pub reason: String,
pub blocked_at_ms: u64,
}Expand description
A blocklist entry (PRD §6.7 takedown).
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.reason: StringReason code, at most MAX_BLOCK_REASON_BYTES.
blocked_at_ms: u64When the object was blocked, Unix ms.
Implementations§
Trait Implementations§
Source§impl Clone for BlockEntry
impl Clone for BlockEntry
Source§impl Debug for BlockEntry
impl Debug for BlockEntry
impl Eq for BlockEntry
Source§impl PartialEq for BlockEntry
impl PartialEq for BlockEntry
impl StructuralPartialEq for BlockEntry
Auto Trait Implementations§
impl Freeze for BlockEntry
impl RefUnwindSafe for BlockEntry
impl Send for BlockEntry
impl Sync for BlockEntry
impl Unpin for BlockEntry
impl UnsafeUnpin for BlockEntry
impl UnwindSafe for BlockEntry
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