pub struct ProblemQuestion {
pub id: i64,
pub owner_id: i64,
pub problem_id: i64,
pub title: String,
pub text: String,
pub answer: String,
pub created_at: DateTime<Utc>,
}Expand description
Request for creating a question for a problem
Fields§
§id: i64Post id
owner_id: i64Owner’s id
problem_id: i64Problem’s id
title: StringQuestion’s title
text: StringQuestion’s text
answer: StringAnswer for a question
created_at: DateTime<Utc>Created at
Trait Implementations§
Source§impl Clone for ProblemQuestion
impl Clone for ProblemQuestion
Source§fn clone(&self) -> ProblemQuestion
fn clone(&self) -> ProblemQuestion
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 ProblemQuestion
impl Debug for ProblemQuestion
Source§impl<'de> Deserialize<'de> for ProblemQuestion
impl<'de> Deserialize<'de> for ProblemQuestion
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
Auto Trait Implementations§
impl Freeze for ProblemQuestion
impl RefUnwindSafe for ProblemQuestion
impl Send for ProblemQuestion
impl Sync for ProblemQuestion
impl Unpin for ProblemQuestion
impl UnsafeUnpin for ProblemQuestion
impl UnwindSafe for ProblemQuestion
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