Struct rosu_v2::model::kudosu::KudosuHistory
source · pub struct KudosuHistory {
pub id: u32,
pub action: KudosuAction,
pub amount: i32,
pub model: String,
pub created_at: OffsetDateTime,
pub giver: Option<KudosuGiver>,
pub post: KudosuPost,
}
Fields§
§id: u32
§action: KudosuAction
Either give
, reset
, or revoke
.
amount: i32
§model: String
Object type which the exchange happened on (forum_post, etc).
created_at: OffsetDateTime
§giver: Option<KudosuGiver>
Simple detail of the user who started the exchange.
post: KudosuPost
Simple detail of the object for display.
Trait Implementations§
source§impl Clone for KudosuHistory
impl Clone for KudosuHistory
source§fn clone(&self) -> KudosuHistory
fn clone(&self) -> KudosuHistory
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for KudosuHistory
impl Debug for KudosuHistory
source§impl<'de> Deserialize<'de> for KudosuHistory
impl<'de> Deserialize<'de> for KudosuHistory
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
source§impl PartialEq<KudosuHistory> for KudosuHistory
impl PartialEq<KudosuHistory> for KudosuHistory
impl Eq for KudosuHistory
Auto Trait Implementations§
impl RefUnwindSafe for KudosuHistory
impl Send for KudosuHistory
impl Sync for KudosuHistory
impl Unpin for KudosuHistory
impl UnwindSafe for KudosuHistory
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
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.