pub struct LocationMessage {
pub type: Option<String>,
pub quick_reply: Option<Box<QuickReply>>,
pub sender: Option<Box<Sender>>,
pub title: String,
pub address: String,
pub latitude: f64,
pub longitude: f64,
}
Fields§
§type: Option<String>
Type of message
quick_reply: Option<Box<QuickReply>>
§sender: Option<Box<Sender>>
§title: String
§address: String
§latitude: f64
§longitude: f64
Implementations§
Trait Implementations§
Source§impl Clone for LocationMessage
impl Clone for LocationMessage
Source§fn clone(&self) -> LocationMessage
fn clone(&self) -> LocationMessage
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 LocationMessage
impl Debug for LocationMessage
Source§impl Default for LocationMessage
impl Default for LocationMessage
Source§fn default() -> LocationMessage
fn default() -> LocationMessage
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for LocationMessage
impl<'de> Deserialize<'de> for LocationMessage
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 PartialEq for LocationMessage
impl PartialEq for LocationMessage
Source§impl Serialize for LocationMessage
impl Serialize for LocationMessage
impl StructuralPartialEq for LocationMessage
Auto Trait Implementations§
impl Freeze for LocationMessage
impl RefUnwindSafe for LocationMessage
impl Send for LocationMessage
impl Sync for LocationMessage
impl Unpin for LocationMessage
impl UnwindSafe for LocationMessage
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