pub struct Answer { /* private fields */ }
Expand description
Represents an answer to a quesetion on one of the Stack Exchange sites. As on the question page it is possible to fetch the comments on an answer as part of the call; though this is not done by default. The upvoted, downvoted, and accepted fields are not supported in this initial API implementation but they are available in the StackExchange API. Docs: https://api.stackexchange.com/docs/types/answer
Example answer:
{
"owner": {
"account_id": 5947562,
"reputation": 4229,
"user_id": 4676641,
"user_type": "registered",
"profile_image": "https://i.stack.imgur.com/8Pzxd.jpg?s=256&g=1",
"display_name": "cam",
"link": "https://stackoverflow.com/users/4676641/cam"
},
"is_accepted": false,
"score": 1,
"last_activity_date": 1616609814,
"creation_date": 1616609814,
"answer_id": 66786986,
"question_id": 66786311,
"content_license": "CC BY-SA 4.0"
}
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Answer
impl<'de> Deserialize<'de> for Answer
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 Answer
impl RefUnwindSafe for Answer
impl Send for Answer
impl Sync for Answer
impl Unpin for Answer
impl UnwindSafe for Answer
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