pub struct ChatFullInfoPrivate {
pub username: Option<String>,
pub first_name: Option<String>,
pub last_name: Option<String>,
pub bio: Option<String>,
pub has_private_forwards: bool,
pub has_restricted_voice_and_video_messages: bool,
pub personal_chat: Option<Box<Chat>>,
pub birthdate: Option<Birthdate>,
pub business_intro: Option<BusinessIntro>,
pub business_location: Option<BusinessLocation>,
pub business_opening_hours: Option<BusinessOpeningHours>,
}Fields§
§username: Option<String>A username, for private chats, supergroups and channels if available.
first_name: Option<String>A first name of the other party in a private chat.
last_name: Option<String>A last name of the other party in a private chat.
bio: Option<String>Bio of the other party in a private chat.
has_private_forwards: booltrue, if privacy settings of the other party in the private chat
allows to use tg://user?id=<user_id> links only in chats with the
user.
has_restricted_voice_and_video_messages: booltrue, if the privacy settings of the other party restrict sending
voice and video note messages in the private chat.
personal_chat: Option<Box<Chat>>For private chats, the personal channel of the user.
birthdate: Option<Birthdate>For private chats, the date of birth of the user.
business_intro: Option<BusinessIntro>For private chats with business accounts, the intro of the business.
business_location: Option<BusinessLocation>For private chats with business accounts, the location of the business.
business_opening_hours: Option<BusinessOpeningHours>For private chats with business accounts, the opening hours of the business.
Trait Implementations§
Source§impl Clone for ChatFullInfoPrivate
impl Clone for ChatFullInfoPrivate
Source§fn clone(&self) -> ChatFullInfoPrivate
fn clone(&self) -> ChatFullInfoPrivate
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ChatFullInfoPrivate
impl Debug for ChatFullInfoPrivate
Source§impl<'de> Deserialize<'de> for ChatFullInfoPrivate
impl<'de> Deserialize<'de> for ChatFullInfoPrivate
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<ChatFullInfoPrivate, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<ChatFullInfoPrivate, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Source§impl From<ChatPrivateFullInfo> for ChatFullInfoPrivate
impl From<ChatPrivateFullInfo> for ChatFullInfoPrivate
Source§fn from(_: ChatPrivateFullInfo) -> ChatFullInfoPrivate
fn from(_: ChatPrivateFullInfo) -> ChatFullInfoPrivate
Source§impl PartialEq for ChatFullInfoPrivate
impl PartialEq for ChatFullInfoPrivate
Source§impl Serialize for ChatFullInfoPrivate
impl Serialize for ChatFullInfoPrivate
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
impl StructuralPartialEq for ChatFullInfoPrivate
Auto Trait Implementations§
impl Forget for ChatFullInfoPrivate
impl Freeze for ChatFullInfoPrivatewhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
*const Chat is !null: Freeze,
PhantomData<Chat>: Freeze,
PhantomData<BusinessOpeningHoursInterval>: Freeze,
impl Move for ChatFullInfoPrivate
impl RefUnwindSafe for ChatFullInfoPrivate
impl Send for ChatFullInfoPrivate
impl Sync for ChatFullInfoPrivate
impl Unpin for ChatFullInfoPrivate
impl UnsafeUnpin for ChatFullInfoPrivatewhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
*const Chat is !null: UnsafeUnpin,
PhantomData<Chat>: UnsafeUnpin,
PhantomData<BusinessOpeningHoursInterval>: UnsafeUnpin,
impl UnwindSafe for ChatFullInfoPrivate
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> Erasable for T
impl<T> Erasable for T
impl<A, B, T> HttpServerConnExec<A, B> for Twhere
B: Body,
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more