#[non_exhaustive]pub struct AnswerQueryResponse {
pub answer: Option<Answer>,
/* private fields */
}Expand description
Response message for DeveloperKnowledge.AnswerQuery.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.answer: Option<Answer>The answer to the query.
Implementations§
Source§impl AnswerQueryResponse
impl AnswerQueryResponse
Sourcepub fn set_answer<T>(self, v: T) -> Self
pub fn set_answer<T>(self, v: T) -> Self
Sourcepub fn set_or_clear_answer<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_answer<T>(self, v: Option<T>) -> Self
Trait Implementations§
Source§impl Clone for AnswerQueryResponse
impl Clone for AnswerQueryResponse
Source§fn clone(&self) -> AnswerQueryResponse
fn clone(&self) -> AnswerQueryResponse
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for AnswerQueryResponse
impl Debug for AnswerQueryResponse
Source§impl Default for AnswerQueryResponse
impl Default for AnswerQueryResponse
Source§fn default() -> AnswerQueryResponse
fn default() -> AnswerQueryResponse
Returns the “default value” for a type. Read more
Source§impl Message for AnswerQueryResponse
impl Message for AnswerQueryResponse
Source§impl PartialEq for AnswerQueryResponse
impl PartialEq for AnswerQueryResponse
impl StructuralPartialEq for AnswerQueryResponse
Auto Trait Implementations§
impl Freeze for AnswerQueryResponse
impl RefUnwindSafe for AnswerQueryResponse
impl Send for AnswerQueryResponse
impl Sync for AnswerQueryResponse
impl Unpin for AnswerQueryResponse
impl UnsafeUnpin for AnswerQueryResponse
impl UnwindSafe for AnswerQueryResponse
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