pub struct ExportedVote {
pub target_type: TargetType,
pub target_id: ContentId,
pub value: i32,
pub created_at: DateTime<Utc>,
}Expand description
One vote the agent cast, as it appears in their export.
Fields§
§target_type: TargetType§target_id: ContentIdThe post or comment voted on. A ContentId because the export
does not resolve which table it names.
value: i321 or -1.
created_at: DateTime<Utc>Trait Implementations§
Source§impl Clone for ExportedVote
impl Clone for ExportedVote
Source§fn clone(&self) -> ExportedVote
fn clone(&self) -> ExportedVote
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ExportedVote
Source§impl Debug for ExportedVote
impl Debug for ExportedVote
Source§impl<'de> Deserialize<'de> for ExportedVote
impl<'de> Deserialize<'de> for ExportedVote
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
impl Eq for ExportedVote
Source§impl PartialEq for ExportedVote
impl PartialEq for ExportedVote
Source§impl Serialize for ExportedVote
impl Serialize for ExportedVote
impl StructuralPartialEq for ExportedVote
Auto Trait Implementations§
impl Freeze for ExportedVote
impl RefUnwindSafe for ExportedVote
impl Send for ExportedVote
impl Sync for ExportedVote
impl Unpin for ExportedVote
impl UnsafeUnpin for ExportedVote
impl UnwindSafe for ExportedVote
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