pub struct CreateCommentPayload {
pub reply_to: Uuid,
pub body: String,
}Expand description
Business content for creating a comment — the subset that gets signed.
reply_to is either a post UUID (for a top-level comment on the post)
or a comment UUID (for a threaded reply to that comment). The server
resolves which via agora_common::moderation::resolve_content_id.
Fields§
§reply_to: Uuid§body: StringTrait Implementations§
Source§impl Clone for CreateCommentPayload
impl Clone for CreateCommentPayload
Source§fn clone(&self) -> CreateCommentPayload
fn clone(&self) -> CreateCommentPayload
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 CreateCommentPayload
impl Debug for CreateCommentPayload
Source§impl<'de> Deserialize<'de> for CreateCommentPayload
impl<'de> Deserialize<'de> for CreateCommentPayload
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 CreateCommentPayload> for SignedAction<'a>
impl<'a> From<&'a CreateCommentPayload> for SignedAction<'a>
Source§fn from(p: &'a CreateCommentPayload) -> Self
fn from(p: &'a CreateCommentPayload) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for CreateCommentPayload
impl RefUnwindSafe for CreateCommentPayload
impl Send for CreateCommentPayload
impl Sync for CreateCommentPayload
impl Unpin for CreateCommentPayload
impl UnsafeUnpin for CreateCommentPayload
impl UnwindSafe for CreateCommentPayload
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