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 duplicate 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 Freeze for StatusResponseResultBuilder
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