pub struct AddCommentBody {
pub body: Option<String>,
pub body_html: Option<String>,
pub body_json: Option<String>,
}Expand description
AddCommentBody
JSON schema
{
"type": "object",
"properties": {
"body": {
"description": "Plain-text / markdown body (adapter-compatible alias for body_html).",
"type": [
"string",
"null"
]
},
"body_html": {
"type": [
"string",
"null"
]
},
"body_json": {
"type": [
"string",
"null"
]
}
}
}Fields§
§body: Option<String>Plain-text / markdown body (adapter-compatible alias for body_html).
body_html: Option<String>§body_json: Option<String>Implementations§
Source§impl AddCommentBody
impl AddCommentBody
pub fn builder() -> AddCommentBody
Trait Implementations§
Source§impl Clone for AddCommentBody
impl Clone for AddCommentBody
Source§fn clone(&self) -> AddCommentBody
fn clone(&self) -> AddCommentBody
Returns a duplicate of the value. Read more
1.0.0 · 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 AddCommentBody
impl Debug for AddCommentBody
Source§impl Default for AddCommentBody
impl Default for AddCommentBody
Source§impl<'de> Deserialize<'de> for AddCommentBody
impl<'de> Deserialize<'de> for AddCommentBody
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 From<&AddCommentBody> for AddCommentBody
impl From<&AddCommentBody> for AddCommentBody
Source§fn from(value: &AddCommentBody) -> Self
fn from(value: &AddCommentBody) -> Self
Converts to this type from the input type.
Source§impl From<AddCommentBody> for AddCommentBody
impl From<AddCommentBody> for AddCommentBody
Source§fn from(value: AddCommentBody) -> Self
fn from(value: AddCommentBody) -> Self
Converts to this type from the input type.
Source§impl Serialize for AddCommentBody
impl Serialize for AddCommentBody
Source§impl TryFrom<AddCommentBody> for AddCommentBody
impl TryFrom<AddCommentBody> for AddCommentBody
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§fn try_from(value: AddCommentBody) -> Result<Self, ConversionError>
fn try_from(value: AddCommentBody) -> Result<Self, ConversionError>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for AddCommentBody
impl RefUnwindSafe for AddCommentBody
impl Send for AddCommentBody
impl Sync for AddCommentBody
impl Unpin for AddCommentBody
impl UnsafeUnpin for AddCommentBody
impl UnwindSafe for AddCommentBody
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