pub struct Comment {
pub id: u64,
pub text: String,
pub date: u64,
pub author: CommentAuthor,
/* private fields */
}Expand description
Contains all the information provided for a Comment.
§Examples
You can query a comment by id via the DeezerObject::get() method:
let comment = Comment::get(4179157801).await?.unwrap();Or you can use DeezerClient::comment():
let deezer = DeezerClient::new();
let comment = deezer.comment(4179157801).await?.unwrap();
Fields§
§id: u64The comment’s Deezer id
text: StringThe content of the comment
date: u64The date the comment was posted
User this comment belongs to
Trait Implementations§
Source§impl DeezerObject for Comment
impl DeezerObject for Comment
Source§impl<'de> Deserialize<'de> for Comment
impl<'de> Deserialize<'de> for Comment
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 Comment
impl RefUnwindSafe for Comment
impl Send for Comment
impl Sync for Comment
impl Unpin for Comment
impl UnwindSafe for Comment
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