pub struct SendLocationBuilder { /* private fields */ }Expand description
Builder for the SendLocation structure
Implementations§
Source§impl SendLocationBuilder
impl SendLocationBuilder
Sourcepub fn new(chat_id: ChatId, latitude: f64, longitude: f64) -> Self
pub fn new(chat_id: ChatId, latitude: f64, longitude: f64) -> Self
Instantiate the builder with the fields message_thread_id, chat_id, latitude, longitude, horizontal_accuracy, live_period, heading, proximity_alert_radius, disable_notification, protect_content, reply_to_message_id, allow_sending_without_reply, reply_markup
Sourcepub fn message_thread_id(self, val: i64) -> Self
pub fn message_thread_id(self, val: i64) -> Self
Set the field message_thread_id to the given value
Sourcepub fn horizontal_accuracy(self, val: f64) -> Self
pub fn horizontal_accuracy(self, val: f64) -> Self
Set the field horizontal_accuracy to the given value
Sourcepub fn live_period(self, val: i64) -> Self
pub fn live_period(self, val: i64) -> Self
Set the field live_period to the given value
Sourcepub fn proximity_alert_radius(self, val: i64) -> Self
pub fn proximity_alert_radius(self, val: i64) -> Self
Set the field proximity_alert_radius to the given value
Sourcepub fn disable_notification(self, val: bool) -> Self
pub fn disable_notification(self, val: bool) -> Self
Set the field disable_notification to the given value
Sourcepub fn protect_content(self, val: bool) -> Self
pub fn protect_content(self, val: bool) -> Self
Set the field protect_content to the given value
Sourcepub fn reply_to_message_id(self, val: i64) -> Self
pub fn reply_to_message_id(self, val: i64) -> Self
Set the field reply_to_message_id to the given value
Sourcepub fn allow_sending_without_reply(self, val: bool) -> Self
pub fn allow_sending_without_reply(self, val: bool) -> Self
Set the field allow_sending_without_reply to the given value
Sourcepub fn reply_markup(self, val: ReplyMarkup) -> Self
pub fn reply_markup(self, val: ReplyMarkup) -> Self
Set the field reply_markup to the given value