pub struct GameBuilder { /* private fields */ }Expand description
Builder for the Game structure
Implementations§
Source§impl GameBuilder
impl GameBuilder
Sourcepub fn new(title: String, description: String) -> Self
pub fn new(title: String, description: String) -> Self
Instantiate the builder with the fields title, description, photo, text, text_entities, animation
Sourcepub fn text_entities(self, val: Vec<MessageEntity>) -> Self
pub fn text_entities(self, val: Vec<MessageEntity>) -> Self
Set the field text_entities to the given value
Trait Implementations§
Auto Trait Implementations§
impl Freeze for GameBuilder
impl RefUnwindSafe for GameBuilder
impl Send for GameBuilder
impl Sync for GameBuilder
impl Unpin for GameBuilder
impl UnwindSafe for GameBuilder
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