pub struct Question {}Fields§
§id: usize§created: usize§owner: usize§receiver: usize§content: String§is_global: boolThe is_global flag allows any (authenticated) user to respond
to the question. Normally, only the receiver can do so.
If is_global is true, receiver should be 0 (and vice versa).
answer_count: usizeThe number of answers the question has. Should never really be changed
unless the question has is_global set to true.
community: usizeThe ID of the community this question is asked to. This should only be > 0
if is_global is set to true.
likes: isize§dislikes: isize§context: QuestionContext§ip: StringThe IP of the question creator for IP blocking and identifying anonymous users.
drawings: Vec<usize>The IDs of all uploads which hold this question’s drawings.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Question
impl<'de> Deserialize<'de> for Question
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 Question
impl RefUnwindSafe for Question
impl Send for Question
impl Sync for Question
impl Unpin for Question
impl UnwindSafe for Question
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