pub struct EditMessageLiveLocation { /* private fields */ }Expand description
Builder for the editMessageLiveLocation method.
Implementations§
Source§impl EditMessageLiveLocation
impl EditMessageLiveLocation
Sourcepub fn live_period(self, v: u32) -> Self
pub fn live_period(self, v: u32) -> Self
Sets how long the location stays live, in seconds (60–86400).
Sourcepub fn reply_markup(self, m: InlineKeyboardMarkup) -> Self
pub fn reply_markup(self, m: InlineKeyboardMarkup) -> Self
Attaches a reply markup (inline keyboard, reply keyboard, etc.).
Sourcepub fn business_connection_id(self, v: impl Into<String>) -> Self
pub fn business_connection_id(self, v: impl Into<String>) -> Self
Business connection ID for acting on behalf of a business account.
Sourcepub fn horizontal_accuracy(self, v: f64) -> Self
pub fn horizontal_accuracy(self, v: f64) -> Self
Radius of uncertainty for the location, in metres (0–1500).
Sourcepub fn proximity_alert_radius(self, v: u32) -> Self
pub fn proximity_alert_radius(self, v: u32) -> Self
Distance for proximity alerts about the approaching member, in metres.
Trait Implementations§
Source§impl IntoFuture for EditMessageLiveLocation
impl IntoFuture for EditMessageLiveLocation
Source§type IntoFuture = Pin<Box<dyn Future<Output = <EditMessageLiveLocation as IntoFuture>::Output> + Send>>
type IntoFuture = Pin<Box<dyn Future<Output = <EditMessageLiveLocation as IntoFuture>::Output> + Send>>
Which kind of future are we turning this into?
Source§fn into_future(self) -> Self::IntoFuture
fn into_future(self) -> Self::IntoFuture
Creates a future from a value. Read more
Auto Trait Implementations§
impl !RefUnwindSafe for EditMessageLiveLocation
impl !UnwindSafe for EditMessageLiveLocation
impl Freeze for EditMessageLiveLocation
impl Send for EditMessageLiveLocation
impl Sync for EditMessageLiveLocation
impl Unpin for EditMessageLiveLocation
impl UnsafeUnpin for EditMessageLiveLocation
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