[−][src]Struct telegram_bot_raw::types::chat::Channel
This object represents a channel.
Fields
id: ChannelId
Unique identifier for this chat.
title: String
Title, for supergroups, channels and group chats.
username: Option<String>
Username for channel.
invite_link: Option<String>
Invite link for this channel, specific to this bot. You can generate a new invite link by using the export_invite_link method.
Trait Implementations
impl Clone for Channel
[src]
impl Debug for Channel
[src]
impl<'de> Deserialize<'de> for Channel
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl Eq for Channel
[src]
impl Hash for Channel
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl Ord for Channel
[src]
fn cmp(&self, other: &Channel) -> Ordering
[src]
#[must_use]fn max(self, other: Self) -> Self
1.21.0[src]
#[must_use]fn min(self, other: Self) -> Self
1.21.0[src]
#[must_use]fn clamp(self, min: Self, max: Self) -> Self
[src]
impl PartialEq<Channel> for Channel
[src]
impl PartialOrd<Channel> for Channel
[src]
fn partial_cmp(&self, other: &Channel) -> Option<Ordering>
[src]
fn lt(&self, other: &Channel) -> bool
[src]
fn le(&self, other: &Channel) -> bool
[src]
fn gt(&self, other: &Channel) -> bool
[src]
fn ge(&self, other: &Channel) -> bool
[src]
impl StructuralEq for Channel
[src]
impl StructuralPartialEq for Channel
[src]
impl ToChatRef for Channel
[src]
fn to_chat_ref(&self) -> ChatRef
[src]
Auto Trait Implementations
impl RefUnwindSafe for Channel
impl Send for Channel
impl Sync for Channel
impl Unpin for Channel
impl UnwindSafe for Channel
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,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<C> CanExportChatInviteLink for C where
C: ToChatRef,
[src]
C: ToChatRef,
pub fn export_invite_link(&Self) -> ExportChatInviteLink
[src]
impl<C> CanGetChat for C where
C: ToChatRef,
[src]
C: ToChatRef,
impl<C> CanGetChatAdministrators for C where
C: ToChatRef,
[src]
C: ToChatRef,
pub fn get_administrators(&Self) -> GetChatAdministrators
[src]
impl<C> CanGetChatMemberForChat for C where
C: ToChatRef,
[src]
C: ToChatRef,
pub fn get_member<O>(&Self, O) -> GetChatMember where
O: ToUserId,
[src]
O: ToUserId,
impl<C> CanGetChatMembersCount for C where
C: ToChatRef,
[src]
C: ToChatRef,
pub fn get_members_count(&Self) -> GetChatMembersCount
[src]
impl<C> CanKickChatMemberForChat for C where
C: ToChatRef,
[src]
C: ToChatRef,
pub fn kick<O>(&Self, O) -> KickChatMember where
O: ToUserId,
[src]
O: ToUserId,
impl<C> CanLeaveChat for C where
C: ToChatRef,
[src]
C: ToChatRef,
impl<M> CanSendAudio for M where
M: ToChatRef,
[src]
M: ToChatRef,
impl<C> CanSendChatAction for C where
C: ToChatRef,
[src]
C: ToChatRef,
pub fn chat_action(&Self, ChatAction) -> SendChatAction
[src]
impl<'p, 'f, 'l, C> CanSendContact<'p, 'f, 'l> for C where
C: ToChatRef,
[src]
C: ToChatRef,
pub fn contact<P, F>(&Self, P, F) -> SendContact<'p, 'f, 'l> where
F: Into<Cow<'f, str>>,
P: Into<Cow<'p, str>>,
[src]
F: Into<Cow<'f, str>>,
P: Into<Cow<'p, str>>,
impl<M> CanSendDocument for M where
M: ToChatRef,
[src]
M: ToChatRef,
impl<C> CanSendLocation for C where
C: ToChatRef,
[src]
C: ToChatRef,
impl<C> CanSendMessage for C where
C: ToChatRef,
[src]
C: ToChatRef,
impl<M> CanSendPhoto for M where
M: ToChatRef,
[src]
M: ToChatRef,
impl<C> CanSendPoll for C where
C: ToChatRef,
[src]
C: ToChatRef,
pub fn poll<'q, 'o, 'e, Q, O>(&Self, Q, Vec<O>) -> SendPoll<'q, 'o, 'e> where
O: Into<Cow<'o, str>>,
Q: Into<Cow<'q, str>>,
[src]
O: Into<Cow<'o, str>>,
Q: Into<Cow<'q, str>>,
impl<'t, 'a, 'f, C> CanSendVenue<'t, 'a, 'f> for C where
C: ToChatRef,
[src]
C: ToChatRef,
pub fn venue<T, A>(&Self, f32, f32, T, A) -> SendVenue<'t, 'a, 'f> where
A: Into<Cow<'a, str>>,
T: Into<Cow<'t, str>>,
[src]
A: Into<Cow<'a, str>>,
T: Into<Cow<'t, str>>,
impl<M> CanSendVideo for M where
M: ToChatRef,
[src]
M: ToChatRef,
impl<C> CanUnbanChatMemberForChat for C where
C: ToChatRef,
[src]
C: ToChatRef,
pub fn unban<O>(&Self, O) -> UnbanChatMember where
O: ToUserId,
[src]
O: ToUserId,
impl<C> CanUnpinMessage for C where
C: ToChatRef,
[src]
C: ToChatRef,
pub fn unpin_message(&Self) -> UnpinChatMessage
[src]
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<S> ToChatRef for S where
S: Deref,
<S as Deref>::Target: ToChatRef,
[src]
S: Deref,
<S as Deref>::Target: ToChatRef,
pub fn to_chat_ref(&Self) -> ChatRef
[src]
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub 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.
pub 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>,