Struct telegram_api_rs::objects::PollOption
source · pub struct PollOption {
pub text: String,
pub voter_count: i32,
}
Fields§
§text: String
§voter_count: i32
Implementations§
source§impl PollOption
impl PollOption
pub fn from_json(data: JsonValue) -> PollOption
pub fn to_json(&self) -> JsonValue
pub fn empty() -> PollOption
Trait Implementations§
source§impl Clone for PollOption
impl Clone for PollOption
source§impl Display for PollOption
impl Display for PollOption
source§impl From<PollOption> for JsonValue
impl From<PollOption> for JsonValue
source§fn from(u: PollOption) -> Self
fn from(u: PollOption) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl RefUnwindSafe for PollOption
impl Send for PollOption
impl Sync for PollOption
impl Unpin for PollOption
impl UnwindSafe for PollOption
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