Struct botx_api::bot::models::status_request::StatusResponseResultBuilder
source · pub struct StatusResponseResultBuilder { /* private fields */ }Expand description
Builder for StatusResponseResult.
Implementations§
source§impl StatusResponseResultBuilder
impl StatusResponseResultBuilder
sourcepub fn with_enabled<VALUE: Into<bool>>(&mut self, value: VALUE) -> &mut Self
pub fn with_enabled<VALUE: Into<bool>>(&mut self, value: VALUE) -> &mut Self
Бот включен/выключен
sourcepub fn with_status_message<VALUE: Into<String>>(
&mut self,
value: VALUE
) -> &mut Self
pub fn with_status_message<VALUE: Into<String>>( &mut self, value: VALUE ) -> &mut Self
Текущий статус бота
sourcepub fn with_commands<VALUE: Into<Vec<BotCommand>>>(
&mut self,
value: VALUE
) -> &mut Self
pub fn with_commands<VALUE: Into<Vec<BotCommand>>>( &mut self, value: VALUE ) -> &mut Self
Список команд бота
sourcepub fn build(
&self
) -> Result<StatusResponseResult, StatusResponseResultBuilderError>
pub fn build( &self ) -> Result<StatusResponseResult, StatusResponseResultBuilderError>
Trait Implementations§
source§impl Clone for StatusResponseResultBuilder
impl Clone for StatusResponseResultBuilder
source§fn clone(&self) -> StatusResponseResultBuilder
fn clone(&self) -> StatusResponseResultBuilder
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl RefUnwindSafe for StatusResponseResultBuilder
impl Send for StatusResponseResultBuilder
impl Sync for StatusResponseResultBuilder
impl Unpin for StatusResponseResultBuilder
impl UnwindSafe for StatusResponseResultBuilder
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