Struct telegram_bot2::models::AnswerShippingQueryBuilder
source · pub struct AnswerShippingQueryBuilder { /* private fields */ }Expand description
Builder for the AnswerShippingQuery structure
Implementations§
source§impl AnswerShippingQueryBuilder
impl AnswerShippingQueryBuilder
sourcepub fn new(shipping_query_id: String, ok: bool) -> Self
pub fn new(shipping_query_id: String, ok: bool) -> Self
Instantiate the builder with the fields shipping_query_id, ok, shipping_options, error_message
sourcepub fn shipping_options(self, val: Vec<ShippingOption>) -> Self
pub fn shipping_options(self, val: Vec<ShippingOption>) -> Self
Set the field shipping_options to the given value
sourcepub fn error_message(self, val: String) -> Self
pub fn error_message(self, val: String) -> Self
Set the field error_message to the given value
Trait Implementations§
source§impl Builder for AnswerShippingQueryBuilder
impl Builder for AnswerShippingQueryBuilder
§type Value = AnswerShippingQuery
type Value = AnswerShippingQuery
Type to be built