Struct rs621::post::Post[][src]

pub struct Post {
    pub id: u64,
    pub created_at: DateTime<Utc>,
    pub updated_at: Option<DateTime<Utc>>,
    pub file: PostFile,
    pub preview: PostPreview,
    pub sample: Option<PostSample>,
    pub score: PostScore,
    pub tags: PostTags,
    pub locked_tags: Vec<String>,
    pub change_seq: u64,
    pub flags: PostFlags,
    pub rating: PostRating,
    pub fav_count: u64,
    pub sources: Vec<String>,
    pub pools: Vec<u64>,
    pub relationships: PostRelationships,
    pub approver_id: Option<u64>,
    pub uploader_id: u64,
    pub description: String,
    pub comment_count: u64,
    pub is_favorited: bool,
}

Structure representing a post.

Fields

id: u64created_at: DateTime<Utc>updated_at: Option<DateTime<Utc>>file: PostFilepreview: PostPreviewsample: Option<PostSample>score: PostScoretags: PostTagslocked_tags: Vec<String>change_seq: u64flags: PostFlagsrating: PostRatingfav_count: u64sources: Vec<String>pools: Vec<u64>relationships: PostRelationshipsapprover_id: Option<u64>uploader_id: u64description: Stringcomment_count: u64is_favorited: bool

Trait Implementations

impl Debug for Post[src]

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

impl Eq for Post[src]

impl PartialEq<Post> for Post[src]

impl StructuralEq for Post[src]

impl StructuralPartialEq for Post[src]

Auto Trait Implementations

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<Q, K> Equivalent<K> for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?Sized
[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.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,