Struct telexide::api::types::SetChatPermissions
source · pub struct SetChatPermissions {
pub chat_id: IntegerOrString,
pub permissions: ChatPermissions,
pub use_independent_chat_permissions: Option<bool>,
}
Expand description
struct for holding data needed to call set_chat_permissions
Fields§
§chat_id: IntegerOrString
Unique identifier for the target chat
permissions: ChatPermissions
New default chat permissions
use_independent_chat_permissions: Option<bool>
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.
Implementations§
source§impl SetChatPermissions
impl SetChatPermissions
pub fn new(chat_id: IntegerOrString, permissions: ChatPermissions) -> Self
pub fn set_use_independent_chat_permissions( &mut self, use_independent_chat_permissions: bool ) -> &mut Self
Trait Implementations§
source§impl Clone for SetChatPermissions
impl Clone for SetChatPermissions
source§fn clone(&self) -> SetChatPermissions
fn clone(&self) -> SetChatPermissions
Returns a copy 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 SetChatPermissions
impl Debug for SetChatPermissions
source§impl<'de> Deserialize<'de> for SetChatPermissions
impl<'de> Deserialize<'de> for SetChatPermissions
source§fn 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>,
Deserialize this value from the given Serde deserializer. Read more
source§impl PartialEq for SetChatPermissions
impl PartialEq for SetChatPermissions
source§fn eq(&self, other: &SetChatPermissions) -> bool
fn eq(&self, other: &SetChatPermissions) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for SetChatPermissions
impl Serialize for SetChatPermissions
impl Eq for SetChatPermissions
impl StructuralEq for SetChatPermissions
impl StructuralPartialEq for SetChatPermissions
Auto Trait Implementations§
impl RefUnwindSafe for SetChatPermissions
impl Send for SetChatPermissions
impl Sync for SetChatPermissions
impl Unpin for SetChatPermissions
impl UnwindSafe for SetChatPermissions
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> CloneDebuggableStorage for Twhere
T: DebuggableStorage + Clone,
impl<T> CloneDebuggableStorage for Twhere T: DebuggableStorage + Clone,
fn clone_storage(&self) -> Box<dyn CloneDebuggableStorage>
source§impl<T> CloneableStorage for Twhere
T: Any + Send + Sync + Clone,
impl<T> CloneableStorage for Twhere T: Any + Send + Sync + Clone,
fn clone_storage(&self) -> Box<dyn CloneableStorage>
§impl<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,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<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,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.