Struct frankenstein::objects::ChosenInlineResult
source · [−]pub struct ChosenInlineResult {
pub result_id: String,
pub from: User,
pub location: Option<Location>,
pub inline_message_id: Option<String>,
pub query: String,
}
Fields
result_id: String
from: User
location: Option<Location>
inline_message_id: Option<String>
query: String
Implementations
sourceimpl ChosenInlineResult
impl ChosenInlineResult
sourcepub fn builder() -> ChosenInlineResultBuilder<((), (), (), (), ())>
pub fn builder() -> ChosenInlineResultBuilder<((), (), (), (), ())>
Create a builder for building ChosenInlineResult
.
On the builder, call .result_id(...)
, .from(...)
, .location(...)
(optional), .inline_message_id(...)
(optional), .query(...)
to set the values of the fields.
Finally, call .build()
to create the instance of ChosenInlineResult
.
Trait Implementations
sourceimpl Clone for ChosenInlineResult
impl Clone for ChosenInlineResult
sourcefn clone(&self) -> ChosenInlineResult
fn clone(&self) -> ChosenInlineResult
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for ChosenInlineResult
impl Debug for ChosenInlineResult
sourceimpl<'de> Deserialize<'de> for ChosenInlineResult
impl<'de> Deserialize<'de> for ChosenInlineResult
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
sourceimpl PartialEq<ChosenInlineResult> for ChosenInlineResult
impl PartialEq<ChosenInlineResult> for ChosenInlineResult
sourcefn eq(&self, other: &ChosenInlineResult) -> bool
fn eq(&self, other: &ChosenInlineResult) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &ChosenInlineResult) -> bool
fn ne(&self, other: &ChosenInlineResult) -> bool
This method tests for !=
.
sourceimpl Serialize for ChosenInlineResult
impl Serialize for ChosenInlineResult
impl StructuralPartialEq for ChosenInlineResult
Auto Trait Implementations
impl RefUnwindSafe for ChosenInlineResult
impl Send for ChosenInlineResult
impl Sync for ChosenInlineResult
impl Unpin for ChosenInlineResult
impl UnwindSafe for ChosenInlineResult
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