pub struct InputMediaLocation {
pub kind: String,
pub latitude: f64,
pub longitude: f64,
pub horizontal_accuracy: Option<f64>,
pub extra: BTreeMap<String, Value>,
}Expand description
Represents a location to be sent.
Fields§
§kind: StringType of the media, must be location
latitude: f64Latitude of the location
longitude: f64Longitude of the location
horizontal_accuracy: Option<f64>The radius of uncertainty for the location, measured in meters; 0-1500
extra: BTreeMap<String, Value>Implementations§
Trait Implementations§
Source§impl Clone for InputMediaLocation
impl Clone for InputMediaLocation
Source§impl Debug for InputMediaLocation
impl Debug for InputMediaLocation
Source§impl<'de> Deserialize<'de> for InputMediaLocation
impl<'de> Deserialize<'de> for InputMediaLocation
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<InputMediaLocation> for InputPollMediaUnion
impl From<InputMediaLocation> for InputPollMediaUnion
Source§fn from(value: InputMediaLocation) -> Self
fn from(value: InputMediaLocation) -> Self
Converts to this type from the input type.
Source§impl From<InputMediaLocation> for InputPollOptionMediaUnion
impl From<InputMediaLocation> for InputPollOptionMediaUnion
Source§fn from(value: InputMediaLocation) -> Self
fn from(value: InputMediaLocation) -> Self
Converts to this type from the input type.
Source§impl PartialEq for InputMediaLocation
impl PartialEq for InputMediaLocation
Source§impl Serialize for InputMediaLocation
impl Serialize for InputMediaLocation
impl StructuralPartialEq for InputMediaLocation
Auto Trait Implementations§
impl Freeze for InputMediaLocation
impl RefUnwindSafe for InputMediaLocation
impl Send for InputMediaLocation
impl Sync for InputMediaLocation
impl Unpin for InputMediaLocation
impl UnsafeUnpin for InputMediaLocation
impl UnwindSafe for InputMediaLocation
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