[][src]Struct deezer::models::comment::Comment

pub struct Comment {
    pub id: u64,
    pub text: String,
    pub date: u64,
    pub author: CommentAuthor,
    // some fields omitted
}

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: u64

The comment's Deezer id

text: String

The content of the comment

date: u64

The date the comment was posted

author: CommentAuthor

User this comment belongs to

Trait Implementations

impl Debug for Comment[src]

impl DeezerObject for Comment[src]

impl<'de> Deserialize<'de> for Comment[src]

impl Serialize for Comment[src]

Auto Trait Implementations

impl RefUnwindSafe for Comment

impl Send for Comment

impl Sync for Comment

impl Unpin for Comment

impl UnwindSafe for Comment

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.