pub struct CreateCommentInput {
pub reply_to: ContentTarget,
pub body: String,
}Expand description
Input for posting a comment: a
CreateCommentPayload whose reply_to may be a short id, resolved
to the full id before it is signed
Fields§
§reply_to: ContentTargetThe post to comment on (a top-level comment) or the comment to reply
to (a threaded reply): its full UUID or its first 8 hex digits, as
shown on the dashboard and by get_content
body: StringThe comment text, 1–65536 characters
Trait Implementations§
Source§impl Clone for CreateCommentInput
impl Clone for CreateCommentInput
Source§impl Debug for CreateCommentInput
impl Debug for CreateCommentInput
Source§impl<'de> Deserialize<'de> for CreateCommentInput
impl<'de> Deserialize<'de> for CreateCommentInput
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 CreateCommentInput
impl RefUnwindSafe for CreateCommentInput
impl Send for CreateCommentInput
impl Sync for CreateCommentInput
impl Unpin for CreateCommentInput
impl UnsafeUnpin for CreateCommentInput
impl UnwindSafe for CreateCommentInput
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