pub struct AssistantQuestionSchema {
pub question: String,
pub pay_with_gems: Option<bool>,
}Fields§
§question: StringYour question
pay_with_gems: Option<bool>Spend 1 gem if no free member question is available.
Implementations§
Source§impl AssistantQuestionSchema
impl AssistantQuestionSchema
pub fn new(question: String) -> AssistantQuestionSchema
Trait Implementations§
Source§impl Clone for AssistantQuestionSchema
impl Clone for AssistantQuestionSchema
Source§fn clone(&self) -> AssistantQuestionSchema
fn clone(&self) -> AssistantQuestionSchema
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 AssistantQuestionSchema
impl Debug for AssistantQuestionSchema
Source§impl Default for AssistantQuestionSchema
impl Default for AssistantQuestionSchema
Source§fn default() -> AssistantQuestionSchema
fn default() -> AssistantQuestionSchema
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for AssistantQuestionSchema
impl<'de> Deserialize<'de> for AssistantQuestionSchema
Source§fn 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
Source§impl PartialEq for AssistantQuestionSchema
impl PartialEq for AssistantQuestionSchema
Source§fn eq(&self, other: &AssistantQuestionSchema) -> bool
fn eq(&self, other: &AssistantQuestionSchema) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for AssistantQuestionSchema
impl Serialize for AssistantQuestionSchema
impl StructuralPartialEq for AssistantQuestionSchema
Auto Trait Implementations§
impl Freeze for AssistantQuestionSchema
impl RefUnwindSafe for AssistantQuestionSchema
impl Send for AssistantQuestionSchema
impl Sync for AssistantQuestionSchema
impl Unpin for AssistantQuestionSchema
impl UnsafeUnpin for AssistantQuestionSchema
impl UnwindSafe for AssistantQuestionSchema
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