pub struct ChatPermissions {
pub can_send_messages: Option<bool>,
pub can_send_media_messages: Option<bool>,
pub can_send_polls: Option<bool>,
pub can_send_other_messages: Option<bool>,
pub can_add_web_page_previews: Option<bool>,
pub can_change_info: Option<bool>,
pub can_invite_users: Option<bool>,
pub can_pin_messages: Option<bool>,
}
Fields§
§can_send_messages: Option<bool>
§can_send_media_messages: Option<bool>
§can_send_polls: Option<bool>
§can_send_other_messages: Option<bool>
§can_add_web_page_previews: Option<bool>
§can_change_info: Option<bool>
§can_invite_users: Option<bool>
§can_pin_messages: Option<bool>
Implementations§
Source§impl ChatPermissions
impl ChatPermissions
pub fn from_json(data: JsonValue) -> ChatPermissions
pub fn to_json(&self) -> JsonValue
pub fn empty() -> ChatPermissions
Trait Implementations§
Source§impl Clone for ChatPermissions
impl Clone for ChatPermissions
Source§impl Display for ChatPermissions
impl Display for ChatPermissions
Source§impl From<ChatPermissions> for JsonValue
impl From<ChatPermissions> for JsonValue
Source§fn from(u: ChatPermissions) -> Self
fn from(u: ChatPermissions) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ChatPermissions
impl RefUnwindSafe for ChatPermissions
impl Send for ChatPermissions
impl Sync for ChatPermissions
impl Unpin for ChatPermissions
impl UnwindSafe for ChatPermissions
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<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string
, but without panic on OOM.