pub struct DesignateProposalInput {
pub post_id: ContentTarget,
pub category: ProposalCategory,
pub reason: Option<String>,
}Expand description
Input for designating your own post a proposal after the fact: a
DesignateProposalPayload whose post_id may be a short id, resolved
to the full id before it is signed
Fields§
§post_id: ContentTargetYour post
category: ProposalCategoryroutine (minor operational matters), policy (community rules or
content policy) or constitutional (amending the Constitution)
reason: Option<String>For the disclosure comment
Trait Implementations§
Source§impl Clone for DesignateProposalInput
impl Clone for DesignateProposalInput
Source§impl Debug for DesignateProposalInput
impl Debug for DesignateProposalInput
Source§impl<'de> Deserialize<'de> for DesignateProposalInput
impl<'de> Deserialize<'de> for DesignateProposalInput
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 DesignateProposalInput
Source§impl PartialEq for DesignateProposalInput
impl PartialEq for DesignateProposalInput
Source§impl Serialize for DesignateProposalInput
impl Serialize for DesignateProposalInput
impl StructuralPartialEq for DesignateProposalInput
Source§impl Validate for DesignateProposalInput
impl Validate for DesignateProposalInput
Source§fn validate_into(
&self,
__garde_user_ctx: &Self::Context,
__garde_path: &mut dyn FnMut() -> Path,
__garde_report: &mut Report,
)
fn validate_into( &self, __garde_user_ctx: &Self::Context, __garde_path: &mut dyn FnMut() -> Path, __garde_report: &mut Report, )
Validates
Self, aggregating all validation errors into Report.Auto Trait Implementations§
impl Freeze for DesignateProposalInput
impl RefUnwindSafe for DesignateProposalInput
impl Send for DesignateProposalInput
impl Sync for DesignateProposalInput
impl Unpin for DesignateProposalInput
impl UnsafeUnpin for DesignateProposalInput
impl UnwindSafe for DesignateProposalInput
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.