Struct botapi::gen_types::ChatLocation
source · pub struct ChatLocation {
pub location: BoxWrapper<Unbox<Location>>,
pub address: String,
}
Expand description
Represents a location to which a chat is connected.
Fields§
§location: BoxWrapper<Unbox<Location>>
The location to which the supergroup is connected. Can’t be a live location.
address: String
Location address; 1-64 characters, as defined by the chat owner
Implementations§
source§impl ChatLocation
impl ChatLocation
pub fn noskip(self) -> NoSkipChatLocation
source§impl ChatLocation
impl ChatLocation
pub fn new<A: Into<Location>>(location: A, address: String) -> Self
sourcepub fn get_location<'a>(&'a self) -> &'a Location
pub fn get_location<'a>(&'a self) -> &'a Location
The location to which the supergroup is connected. Can’t be a live location.
sourcepub fn set_location<'a>(&'a mut self, location: Location) -> &'a mut Self
pub fn set_location<'a>(&'a mut self, location: Location) -> &'a mut Self
The location to which the supergroup is connected. Can’t be a live location.
sourcepub fn get_address<'a>(&'a self) -> &'a str
pub fn get_address<'a>(&'a self) -> &'a str
Location address; 1-64 characters, as defined by the chat owner
sourcepub fn set_address<'a>(&'a mut self, address: String) -> &'a mut Self
pub fn set_address<'a>(&'a mut self, address: String) -> &'a mut Self
Location address; 1-64 characters, as defined by the chat owner
Trait Implementations§
source§impl Clone for ChatLocation
impl Clone for ChatLocation
source§fn clone(&self) -> ChatLocation
fn clone(&self) -> ChatLocation
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 ChatLocation
impl Debug for ChatLocation
source§impl Default for ChatLocation
impl Default for ChatLocation
source§fn default() -> ChatLocation
fn default() -> ChatLocation
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for ChatLocation
impl<'de> Deserialize<'de> for ChatLocation
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 From<BoxWrapper<Box<ChatLocation>>> for ChatLocation
impl From<BoxWrapper<Box<ChatLocation>>> for ChatLocation
source§fn from(t: BoxWrapper<Box<ChatLocation>>) -> Self
fn from(t: BoxWrapper<Box<ChatLocation>>) -> Self
Converts to this type from the input type.
source§impl From<BoxWrapper<Unbox<ChatLocation>>> for ChatLocation
impl From<BoxWrapper<Unbox<ChatLocation>>> for ChatLocation
source§fn from(t: BoxWrapper<Unbox<ChatLocation>>) -> Self
fn from(t: BoxWrapper<Unbox<ChatLocation>>) -> Self
Converts to this type from the input type.
source§impl From<NoSkipChatLocation> for ChatLocation
impl From<NoSkipChatLocation> for ChatLocation
source§fn from(t: NoSkipChatLocation) -> Self
fn from(t: NoSkipChatLocation) -> Self
Converts to this type from the input type.
source§impl Hash for ChatLocation
impl Hash for ChatLocation
source§impl Into<NoSkipChatLocation> for ChatLocation
impl Into<NoSkipChatLocation> for ChatLocation
source§fn into(self) -> NoSkipChatLocation
fn into(self) -> NoSkipChatLocation
Converts this type into the (usually inferred) input type.
source§impl Ord for ChatLocation
impl Ord for ChatLocation
source§fn cmp(&self, other: &ChatLocation) -> Ordering
fn cmp(&self, other: &ChatLocation) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq for ChatLocation
impl PartialEq for ChatLocation
source§fn eq(&self, other: &ChatLocation) -> bool
fn eq(&self, other: &ChatLocation) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for ChatLocation
impl PartialOrd for ChatLocation
source§fn partial_cmp(&self, other: &ChatLocation) -> Option<Ordering>
fn partial_cmp(&self, other: &ChatLocation) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl Serialize for ChatLocation
impl Serialize for ChatLocation
impl Eq for ChatLocation
impl StructuralPartialEq for ChatLocation
Auto Trait Implementations§
impl Freeze for ChatLocation
impl RefUnwindSafe for ChatLocation
impl Send for ChatLocation
impl Sync for ChatLocation
impl Unpin for ChatLocation
impl UnwindSafe for ChatLocation
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§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.