pub struct AssistantAnswerDataSchema {
pub answer: String,
pub assistant: Box<RateLimitScopeSchema>,
pub paid_with_gems: bool,
}Fields§
§answer: StringThe assistant’s answer.
assistant: Box<RateLimitScopeSchema>Updated assistant rate limit after this request.
paid_with_gems: boolWhether this question cost 1 gem.
Implementations§
Source§impl AssistantAnswerDataSchema
impl AssistantAnswerDataSchema
pub fn new( answer: String, assistant: RateLimitScopeSchema, paid_with_gems: bool, ) -> AssistantAnswerDataSchema
Trait Implementations§
Source§impl Clone for AssistantAnswerDataSchema
impl Clone for AssistantAnswerDataSchema
Source§fn clone(&self) -> AssistantAnswerDataSchema
fn clone(&self) -> AssistantAnswerDataSchema
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 AssistantAnswerDataSchema
impl Debug for AssistantAnswerDataSchema
Source§impl Default for AssistantAnswerDataSchema
impl Default for AssistantAnswerDataSchema
Source§fn default() -> AssistantAnswerDataSchema
fn default() -> AssistantAnswerDataSchema
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for AssistantAnswerDataSchema
impl<'de> Deserialize<'de> for AssistantAnswerDataSchema
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 AssistantAnswerDataSchema
impl PartialEq for AssistantAnswerDataSchema
Source§fn eq(&self, other: &AssistantAnswerDataSchema) -> bool
fn eq(&self, other: &AssistantAnswerDataSchema) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for AssistantAnswerDataSchema
Auto Trait Implementations§
impl Freeze for AssistantAnswerDataSchema
impl RefUnwindSafe for AssistantAnswerDataSchema
impl Send for AssistantAnswerDataSchema
impl Sync for AssistantAnswerDataSchema
impl Unpin for AssistantAnswerDataSchema
impl UnsafeUnpin for AssistantAnswerDataSchema
impl UnwindSafe for AssistantAnswerDataSchema
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