Struct rapr::RaPostItems[][src]

pub struct RaPostItems {
    pub upvotes: u64,
    pub downvotes: u64,
    pub permalink: String,
    pub url: Option<String>,
}

Items related to the post

Fields

upvotes: u64downvotes: u64permalink: Stringurl: Option<String>

Implementations

impl RaPostItems[src]

pub fn new(
    upvotes: u64,
    downvotes: u64,
    permalink: &str,
    url: Option<String>
) -> Self
[src]

Create a new struct of items for a post
You probably don't need this fucntion.

Trait Implementations

impl Clone for RaPostItems[src]

impl Debug for RaPostItems[src]

Auto Trait Implementations

impl RefUnwindSafe for RaPostItems[src]

impl Send for RaPostItems[src]

impl Sync for RaPostItems[src]

impl Unpin for RaPostItems[src]

impl UnwindSafe for RaPostItems[src]

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> From<T> for T[src]

impl<T> Instrument for T[src]

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

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.