Struct frankenstein::objects::Game
source · [−]pub struct Game {
pub title: String,
pub description: String,
pub photo: Vec<PhotoSize>,
pub text: Option<String>,
pub text_entities: Option<Vec<MessageEntity>>,
pub animation: Option<Animation>,
}
Fields
title: String
description: String
photo: Vec<PhotoSize>
text: Option<String>
text_entities: Option<Vec<MessageEntity>>
animation: Option<Animation>
Implementations
sourceimpl Game
impl Game
sourcepub fn builder() -> GameBuilder<((), (), (), (), (), ())>
pub fn builder() -> GameBuilder<((), (), (), (), (), ())>
Create a builder for building Game
.
On the builder, call .title(...)
, .description(...)
, .photo(...)
, .text(...)
(optional), .text_entities(...)
(optional), .animation(...)
(optional) to set the values of the fields.
Finally, call .build()
to create the instance of Game
.
Trait Implementations
sourceimpl<'de> Deserialize<'de> for Game
impl<'de> Deserialize<'de> for Game
sourcefn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl StructuralPartialEq for Game
Auto Trait Implementations
impl RefUnwindSafe for Game
impl Send for Game
impl Sync for Game
impl Unpin for Game
impl UnwindSafe for Game
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more