pub struct CallRestrictChatMember<'a, V> { /* private fields */ }Implementations§
Source§impl<'a, V: Into<ChatHandle> + Serialize> CallRestrictChatMember<'a, V>
impl<'a, V: Into<ChatHandle> + Serialize> CallRestrictChatMember<'a, V>
Sourcepub fn chat_id(self, chat_id: V) -> Self
pub fn chat_id(self, chat_id: V) -> Self
Unique identifier for the target chat or username of the target supergroup (in the format @supergroupusername)
pub fn get_chat_id(&'a self) -> &'a V
pub fn get_user_id(&'a self) -> &'a i64
Sourcepub fn permissions<T>(self, permissions: T) -> Selfwhere
T: Into<&'a ChatPermissions>,
pub fn permissions<T>(self, permissions: T) -> Selfwhere
T: Into<&'a ChatPermissions>,
A JSON-serialized object for new user permissions
pub fn get_permissions(&'a self) -> &'a &'a ChatPermissions
Sourcepub fn use_independent_chat_permissions(
self,
use_independent_chat_permissions: bool,
) -> Self
pub fn use_independent_chat_permissions( self, use_independent_chat_permissions: bool, ) -> Self
Pass True if chat permissions are set independently. Otherwise, the can_send_other_messages and can_add_web_page_previews permissions will imply the can_send_messages, can_send_audios, can_send_documents, can_send_photos, can_send_videos, can_send_video_notes, and can_send_voice_notes permissions; the can_send_polls permission will imply the can_send_messages permission.
pub fn get_use_independent_chat_permissions(&'a self) -> &'a Option<bool>
Sourcepub fn until_date(self, until_date: i64) -> Self
pub fn until_date(self, until_date: i64) -> Self
Date when restrictions will be lifted for the user; Unix time. If user is restricted for more than 366 days or less than 30 seconds from the current time, they are considered to be restricted forever
pub fn get_until_date(&'a self) -> &'a Option<i64>
pub async fn build(self) -> BotResult<bool>
Auto Trait Implementations§
impl<'a, V> Freeze for CallRestrictChatMember<'a, V>where
V: Freeze,
impl<'a, V> !RefUnwindSafe for CallRestrictChatMember<'a, V>
impl<'a, V> Send for CallRestrictChatMember<'a, V>where
V: Send,
impl<'a, V> Sync for CallRestrictChatMember<'a, V>where
V: Sync,
impl<'a, V> Unpin for CallRestrictChatMember<'a, V>where
V: Unpin,
impl<'a, V> !UnwindSafe for CallRestrictChatMember<'a, V>
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