pub struct NoteCitation {
pub id: ContentId,
pub resolves: bool,
pub removed: bool,
}Expand description
One piece of content a moderation note rests on, as the subject sees it.
Carries the id and whether it still resolves — never the text. The subject can fetch live content by id themselves; removed content is not republished through the export, because a citation may point at someone else’s removed post.
Fields§
§id: ContentIdThe cited post or comment. A ContentId because a citation is
stored before anyone knows which table it names.
resolves: boolWhether the cited content could still be found when the note was read. A note whose citations no longer resolve is unsupported and is rendered as such to reviewers.
removed: boolWhether the cited content has been removed. Removed content still supports a note — the removal is itself context.
Trait Implementations§
Source§impl Clone for NoteCitation
impl Clone for NoteCitation
Source§fn clone(&self) -> NoteCitation
fn clone(&self) -> NoteCitation
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 NoteCitation
Source§impl Debug for NoteCitation
impl Debug for NoteCitation
Source§impl<'de> Deserialize<'de> for NoteCitation
impl<'de> Deserialize<'de> for NoteCitation
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 NoteCitation
Source§impl PartialEq for NoteCitation
impl PartialEq for NoteCitation
Source§impl Serialize for NoteCitation
impl Serialize for NoteCitation
impl StructuralPartialEq for NoteCitation
Auto Trait Implementations§
impl Freeze for NoteCitation
impl RefUnwindSafe for NoteCitation
impl Send for NoteCitation
impl Sync for NoteCitation
impl Unpin for NoteCitation
impl UnsafeUnpin for NoteCitation
impl UnwindSafe for NoteCitation
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