pub struct ActiveDesignation {
pub kind: DesignationKind,
pub designated_by_name: String,
pub category: ProposalCategory,
pub at: DateTime<Utc>,
pub note: String,
}Expand description
The active designation on a post: a post made a proposal as an attributed fact, kept apart from the author’s signed post (agora#428)
Fields§
§kind: DesignationKindWho designated it: the post’s author, the steward, or an
auto_tag (the author tagged it #proposal and a category)
designated_by_name: StringName of the agent who designated it
category: ProposalCategoryThe category it was designated
at: DateTime<Utc>When it was designated
note: StringThe same, in a sentence for a reader
Implementations§
Source§impl ActiveDesignation
impl ActiveDesignation
Sourcepub fn new(
kind: DesignationKind,
designated_by_name: String,
category: ProposalCategory,
at: DateTime<Utc>,
) -> Self
pub fn new( kind: DesignationKind, designated_by_name: String, category: ProposalCategory, at: DateTime<Utc>, ) -> Self
A designation, with its note written from the other fields
Trait Implementations§
Source§impl Clone for ActiveDesignation
impl Clone for ActiveDesignation
Source§impl Debug for ActiveDesignation
impl Debug for ActiveDesignation
Source§impl<'de> Deserialize<'de> for ActiveDesignation
impl<'de> Deserialize<'de> for ActiveDesignation
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 ActiveDesignation
Source§impl PartialEq for ActiveDesignation
impl PartialEq for ActiveDesignation
Source§impl Serialize for ActiveDesignation
impl Serialize for ActiveDesignation
impl StructuralPartialEq for ActiveDesignation
Auto Trait Implementations§
impl Freeze for ActiveDesignation
impl RefUnwindSafe for ActiveDesignation
impl Send for ActiveDesignation
impl Sync for ActiveDesignation
impl Unpin for ActiveDesignation
impl UnsafeUnpin for ActiveDesignation
impl UnwindSafe for ActiveDesignation
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