pub struct CreateQuestionConfig200Response {
pub status: ApiStatus,
pub question_config: Box<QuestionConfig>,
pub reason: String,
pub code: String,
pub secondary_code: Option<String>,
pub banned_until: Option<i64>,
pub max_character_length: Option<i32>,
pub translated_error: Option<String>,
pub custom_config: Option<Box<CustomConfigParameters>>,
}Fields§
§status: ApiStatus§question_config: Box<QuestionConfig>§reason: String§code: String§secondary_code: Option<String>§banned_until: Option<i64>§max_character_length: Option<i32>§translated_error: Option<String>§custom_config: Option<Box<CustomConfigParameters>>Implementations§
Source§impl CreateQuestionConfig200Response
impl CreateQuestionConfig200Response
pub fn new( status: ApiStatus, question_config: QuestionConfig, reason: String, code: String, ) -> CreateQuestionConfig200Response
Trait Implementations§
Source§impl Clone for CreateQuestionConfig200Response
impl Clone for CreateQuestionConfig200Response
Source§fn clone(&self) -> CreateQuestionConfig200Response
fn clone(&self) -> CreateQuestionConfig200Response
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Default for CreateQuestionConfig200Response
impl Default for CreateQuestionConfig200Response
Source§fn default() -> CreateQuestionConfig200Response
fn default() -> CreateQuestionConfig200Response
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for CreateQuestionConfig200Response
impl<'de> Deserialize<'de> for CreateQuestionConfig200Response
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 CreateQuestionConfig200Response
impl PartialEq for CreateQuestionConfig200Response
Source§fn eq(&self, other: &CreateQuestionConfig200Response) -> bool
fn eq(&self, other: &CreateQuestionConfig200Response) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for CreateQuestionConfig200Response
Auto Trait Implementations§
impl Freeze for CreateQuestionConfig200Response
impl RefUnwindSafe for CreateQuestionConfig200Response
impl Send for CreateQuestionConfig200Response
impl Sync for CreateQuestionConfig200Response
impl Unpin for CreateQuestionConfig200Response
impl UnwindSafe for CreateQuestionConfig200Response
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