pub struct Geo {
pub raw: GeoPoint,
}Fields§
§raw: GeoPointImplementations§
Source§impl Geo
impl Geo
pub fn from_raw_media(geo: MessageMediaGeo) -> Option<Self>
pub fn to_raw_input_media(&self) -> InputMediaGeoPoint
pub fn to_raw_input_geo_point(&self) -> InputGeoPoint
Sourcepub fn accuracy_radius(&self) -> Option<i32>
pub fn accuracy_radius(&self) -> Option<i32>
Get the accuracy of the geo location in meters.
Trait Implementations§
impl StructuralPartialEq for Geo
Auto Trait Implementations§
impl Freeze for Geo
impl RefUnwindSafe for Geo
impl Send for Geo
impl Sync for Geo
impl Unpin for Geo
impl UnwindSafe for Geo
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