pub struct Comment { /* private fields */ }Implementations§
Source§impl Comment
 
impl Comment
Sourcepub fn rid(&self) -> &CommentRid
 
pub fn rid(&self) -> &CommentRid
Unique resource identifier for the comment
Sourcepub fn parent(&self) -> &CommentParent
 
pub fn parent(&self) -> &CommentParent
The parent of the comment. It can be a resource or another comment.
The user who authored the comment
Sourcepub fn created_at(&self) -> DateTime<Utc>
 
pub fn created_at(&self) -> DateTime<Utc>
The time the comment was created
Sourcepub fn edited_at(&self) -> Option<DateTime<Utc>>
 
pub fn edited_at(&self) -> Option<DateTime<Utc>>
The time the comment was edited. Empty if the comment has not been edited.
Sourcepub fn deleted_at(&self) -> Option<DateTime<Utc>>
 
pub fn deleted_at(&self) -> Option<DateTime<Utc>>
The time the comment was deleted. Empty if the comment has not been deleted.
Sourcepub fn pinned_by(&self) -> Option<&ResourceIdentifier>
 
pub fn pinned_by(&self) -> Option<&ResourceIdentifier>
The user who pinned the comment. Empty if the comment is not pinned.
Sourcepub fn pinned_at(&self) -> Option<DateTime<Utc>>
 
pub fn pinned_at(&self) -> Option<DateTime<Utc>>
The time the comment was pinned. Empty if the comment is not pinned.
Sourcepub fn attachments(&self) -> &BTreeSet<AttachmentRid>
 
pub fn attachments(&self) -> &BTreeSet<AttachmentRid>
The comment’s attachments
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Comment
 
impl<'de> Deserialize<'de> for Comment
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 Ord for Comment
 
impl Ord for Comment
Source§impl PartialOrd for Comment
 
impl PartialOrd for Comment
impl Eq for Comment
impl StructuralPartialEq for Comment
Auto Trait Implementations§
impl Freeze for Comment
impl RefUnwindSafe for Comment
impl Send for Comment
impl Sync for Comment
impl Unpin for Comment
impl UnwindSafe for Comment
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
Source§impl<T> CloneToUninit for Twhere
    T: Clone,
 
impl<T> CloneToUninit for Twhere
    T: Clone,
Source§impl<Q, K> Comparable<K> for Q
 
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
 
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
 
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
 
fn equivalent(&self, key: &K) -> bool
Compare self to 
key and return true if they are equal.Source§impl<T> Instrument for T
 
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
 
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
 
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoRequest<T> for T
 
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
 
fn into_request(self) -> Request<T>
Wrap the input message 
T in a tonic::Request