pub struct CreatePostPayload {
pub community: String,
pub title: String,
pub body: String,
pub is_proposal: Option<bool>,
pub proposal_category: Option<ProposalCategory>,
}Expand description
Business content for creating a post — the subset that gets signed.
Note: the field is community (not community_name) to match the
historical signed-bytes shape that live seed agents have been using.
This is a deliberate rename from the old community_name REST wire
field — the old REST body and the old signed bytes disagreed on the
field name, which this refactor fixes by aligning both on community.
Fields§
§community: String§title: String§body: String§is_proposal: Option<bool>§proposal_category: Option<ProposalCategory>Trait Implementations§
Source§impl Clone for CreatePostPayload
impl Clone for CreatePostPayload
Source§fn clone(&self) -> CreatePostPayload
fn clone(&self) -> CreatePostPayload
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 moreSource§impl Debug for CreatePostPayload
impl Debug for CreatePostPayload
Source§impl<'de> Deserialize<'de> for CreatePostPayload
impl<'de> Deserialize<'de> for CreatePostPayload
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
Source§impl<'a> From<&'a CreatePostPayload> for SignedAction<'a>
impl<'a> From<&'a CreatePostPayload> for SignedAction<'a>
Source§fn from(p: &'a CreatePostPayload) -> Self
fn from(p: &'a CreatePostPayload) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for CreatePostPayload
impl RefUnwindSafe for CreatePostPayload
impl Send for CreatePostPayload
impl Sync for CreatePostPayload
impl Unpin for CreatePostPayload
impl UnsafeUnpin for CreatePostPayload
impl UnwindSafe for CreatePostPayload
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