[−][src]Struct telexide::api::types::PromoteChatMember
struct for holding data needed to call
promote_chat_member
Fields
chat_id: i64
Unique identifier for the target chat
user_id: i64
Unique identifier of the target user
can_post_messages: Option<bool>
if the administrator can create channel posts, channels only
can_edit_messages: Option<bool>
if the administrator can edit messages of other users and can pin messages, channels only
can_delete_messages: Option<bool>
if the administrator can delete messages of other users
can_restrict_members: Option<bool>
if the administrator can restrict, ban or unban chat members
can_promote_members: Option<bool>
if the administrator can add new administrators with a subset of his own privileges or demote administrators that he has promoted, directly or indirectly (promoted by administrators that were appointed by him)
can_change_info: Option<bool>
if the administrator can change chat title, photo and other settings
can_invite_users: Option<bool>
if the administrator can invite new users to the chat
can_pin_messages: Option<bool>
if the administrator can pin messages, supergroups only
Methods
impl PromoteChatMember
[src]
pub fn new(chat_id: i64, user_id: i64) -> Self
[src]
function to create a new PromoteChatMember
object, setting all
optional fields to None
Trait Implementations
impl Clone for PromoteChatMember
[src]
fn clone(&self) -> PromoteChatMember
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for PromoteChatMember
[src]
impl<'de> Deserialize<'de> for PromoteChatMember
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl PartialEq<PromoteChatMember> for PromoteChatMember
[src]
fn eq(&self, other: &PromoteChatMember) -> bool
[src]
fn ne(&self, other: &PromoteChatMember) -> bool
[src]
impl Serialize for PromoteChatMember
[src]
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer,
[src]
__S: Serializer,
impl StructuralPartialEq for PromoteChatMember
[src]
Auto Trait Implementations
impl RefUnwindSafe for PromoteChatMember
impl Send for PromoteChatMember
impl Sync for PromoteChatMember
impl Unpin for PromoteChatMember
impl UnwindSafe for PromoteChatMember
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> CloneAny for T where
T: Clone + Any,
[src]
T: Clone + Any,
fn clone_any(&self) -> Box<dyn CloneAny + 'static>
[src]
fn clone_any_send(&self) -> Box<dyn CloneAny + 'static + Send> where
T: Send,
[src]
T: Send,
fn clone_any_sync(&self) -> Box<dyn CloneAny + 'static + Sync> where
T: Sync,
[src]
T: Sync,
fn clone_any_send_sync(&self) -> Box<dyn CloneAny + 'static + Send + Sync> where
T: Send + Sync,
[src]
T: Send + Sync,
impl<T> DebugAny for T where
T: Any + Debug,
[src]
T: Any + Debug,
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> UnsafeAny for T where
T: Any,
T: Any,