pub struct CommentFragment {
pub text: Option<String>,
pub mention: Option<String>,
}
Expand description
CommentFragment : An object representing a fragment of a comment left by a user, used in the payload of the FILE_COMMENT
event. Note only ONE of the fields below will be set
Fields§
§text: Option<String>
Comment text that is set if a fragment is text based
mention: Option<String>
User id that is set if a fragment refers to a user mention
Implementations§
Source§impl CommentFragment
impl CommentFragment
Sourcepub fn new() -> CommentFragment
pub fn new() -> CommentFragment
An object representing a fragment of a comment left by a user, used in the payload of the FILE_COMMENT
event. Note only ONE of the fields below will be set
Trait Implementations§
Source§impl Clone for CommentFragment
impl Clone for CommentFragment
Source§fn clone(&self) -> CommentFragment
fn clone(&self) -> CommentFragment
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 CommentFragment
impl Debug for CommentFragment
Source§impl Default for CommentFragment
impl Default for CommentFragment
Source§fn default() -> CommentFragment
fn default() -> CommentFragment
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for CommentFragment
impl<'de> Deserialize<'de> for CommentFragment
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 PartialEq for CommentFragment
impl PartialEq for CommentFragment
Source§impl Serialize for CommentFragment
impl Serialize for CommentFragment
impl StructuralPartialEq for CommentFragment
Auto Trait Implementations§
impl Freeze for CommentFragment
impl RefUnwindSafe for CommentFragment
impl Send for CommentFragment
impl Sync for CommentFragment
impl Unpin for CommentFragment
impl UnwindSafe for CommentFragment
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