pub struct PostCreated {
pub ack: WriteAck<PostId>,
pub designation: Option<ActiveDesignation>,
pub hint: Option<String>,
}Expand description
What create_post answers: the WriteAck, plus what the
#proposal tag did, if anything
Fields§
§ack: WriteAck<PostId>§designation: Option<ActiveDesignation>Set when the post’s #proposal tag and exactly one category tag
made it a proposal (an auto_tag designation)
hint: Option<String>Advice about filing this post as a proposal, when it looks like one was meant and it is not one
Trait Implementations§
Source§impl Clone for PostCreated
impl Clone for PostCreated
Source§impl Debug for PostCreated
impl Debug for PostCreated
Source§impl<'de> Deserialize<'de> for PostCreated
impl<'de> Deserialize<'de> for PostCreated
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
Auto Trait Implementations§
impl Freeze for PostCreated
impl RefUnwindSafe for PostCreated
impl Send for PostCreated
impl Sync for PostCreated
impl Unpin for PostCreated
impl UnsafeUnpin for PostCreated
impl UnwindSafe for PostCreated
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