#[non_exhaustive]pub struct RestrictMemberOptions {
pub use_independent_chat_permissions: Option<bool>,
pub until_date: Option<i64>,
}Expand description
Optional fields for high-level restrictChatMember helpers.
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.use_independent_chat_permissions: Option<bool>§until_date: Option<i64>Implementations§
Source§impl RestrictMemberOptions
impl RestrictMemberOptions
pub fn new() -> Self
pub fn use_independent_chat_permissions( self, use_independent_chat_permissions: bool, ) -> Self
pub fn until_date(self, until_date: i64) -> Self
Trait Implementations§
Source§impl Clone for RestrictMemberOptions
impl Clone for RestrictMemberOptions
Source§fn clone(&self) -> RestrictMemberOptions
fn clone(&self) -> RestrictMemberOptions
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for RestrictMemberOptions
impl Debug for RestrictMemberOptions
Source§impl Default for RestrictMemberOptions
impl Default for RestrictMemberOptions
Source§fn default() -> RestrictMemberOptions
fn default() -> RestrictMemberOptions
Returns the “default value” for a type. Read more
Source§impl PartialEq for RestrictMemberOptions
impl PartialEq for RestrictMemberOptions
impl Copy for RestrictMemberOptions
impl Eq for RestrictMemberOptions
impl StructuralPartialEq for RestrictMemberOptions
Auto Trait Implementations§
impl Freeze for RestrictMemberOptions
impl RefUnwindSafe for RestrictMemberOptions
impl Send for RestrictMemberOptions
impl Sync for RestrictMemberOptions
impl Unpin for RestrictMemberOptions
impl UnsafeUnpin for RestrictMemberOptions
impl UnwindSafe for RestrictMemberOptions
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.