#[non_exhaustive]pub struct SpaceBanCreateInput<'a> {
pub client_id: Option<&'a str>,
pub space_id: &'a Id,
pub user_id: &'a Id,
pub reason: Option<&'a str>,
pub expires_at: Option<&'a UTCDate>,
}Expand description
Parameters for creating one SpaceBan via SpaceBan/set.
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.client_id: Option<&'a str>Caller-supplied creation key. When None — or Some("") — a ULID
is generated automatically. An empty Some("") is treated the same
as None, not as a rejection; callers must not assume the wire
echoes a caller-supplied empty string.
space_id: &'a IdThe Space this ban applies to.
user_id: &'a IdChatContact.id of the user to ban.
reason: Option<&'a str>Optional human-readable reason for the ban.
expires_at: Option<&'a UTCDate>Optional expiry time after which the ban is automatically lifted.
Implementations§
Source§impl<'a> SpaceBanCreateInput<'a>
impl<'a> SpaceBanCreateInput<'a>
Trait Implementations§
Source§impl<'a> Clone for SpaceBanCreateInput<'a>
impl<'a> Clone for SpaceBanCreateInput<'a>
Source§fn clone(&self) -> SpaceBanCreateInput<'a>
fn clone(&self) -> SpaceBanCreateInput<'a>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl<'a> Freeze for SpaceBanCreateInput<'a>
impl<'a> RefUnwindSafe for SpaceBanCreateInput<'a>
impl<'a> Send for SpaceBanCreateInput<'a>
impl<'a> Sync for SpaceBanCreateInput<'a>
impl<'a> Unpin for SpaceBanCreateInput<'a>
impl<'a> UnsafeUnpin for SpaceBanCreateInput<'a>
impl<'a> UnwindSafe for SpaceBanCreateInput<'a>
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