pub struct Builder<T>(/* private fields */);
Expand description
A builder for Comment
Implementations§
Source§impl Builder<RidStage>
impl Builder<RidStage>
Sourcepub fn rid(self, rid: CommentRid) -> Builder<ParentStage>
pub fn rid(self, rid: CommentRid) -> Builder<ParentStage>
Sets the rid
field.
Source§impl Builder<ParentStage>
impl Builder<ParentStage>
Sourcepub fn parent(self, parent: CommentParent) -> Builder<AuthorRidStage>
pub fn parent(self, parent: CommentParent) -> Builder<AuthorRidStage>
Sets the parent
field.
Source§impl Builder<AuthorRidStage>
impl Builder<AuthorRidStage>
Sets the author_rid
field.
Source§impl Builder<CreatedAtStage>
impl Builder<CreatedAtStage>
Sourcepub fn created_at(self, created_at: DateTime<Utc>) -> Builder<ContentStage>
pub fn created_at(self, created_at: DateTime<Utc>) -> Builder<ContentStage>
Sets the created_at
field.
Source§impl Builder<ContentStage>
impl Builder<ContentStage>
Source§impl Builder<Complete>
impl Builder<Complete>
Sourcepub fn rid(self, rid: CommentRid) -> Self
pub fn rid(self, rid: CommentRid) -> Self
Sets the rid
field.
Sourcepub fn parent(self, parent: CommentParent) -> Self
pub fn parent(self, parent: CommentParent) -> Self
Sets the parent
field.
Sets the author_rid
field.
Sourcepub fn created_at(self, created_at: DateTime<Utc>) -> Self
pub fn created_at(self, created_at: DateTime<Utc>) -> Self
Sets the created_at
field.
Sourcepub fn edited_at(self, edited_at: impl Into<Option<DateTime<Utc>>>) -> Self
pub fn edited_at(self, edited_at: impl Into<Option<DateTime<Utc>>>) -> Self
Sets the edited_at
field.
Sourcepub fn deleted_at(self, deleted_at: impl Into<Option<DateTime<Utc>>>) -> Self
pub fn deleted_at(self, deleted_at: impl Into<Option<DateTime<Utc>>>) -> Self
Sets the deleted_at
field.
Sourcepub fn pinned_by(self, pinned_by: impl Into<Option<ResourceIdentifier>>) -> Self
pub fn pinned_by(self, pinned_by: impl Into<Option<ResourceIdentifier>>) -> Self
Sets the pinned_by
field.
Sourcepub fn pinned_at(self, pinned_at: impl Into<Option<DateTime<Utc>>>) -> Self
pub fn pinned_at(self, pinned_at: impl Into<Option<DateTime<Utc>>>) -> Self
Sets the pinned_at
field.
Sourcepub fn push_reactions(self, reactions: Reaction) -> Self
pub fn push_reactions(self, reactions: Reaction) -> Self
Adds a value to the reactions
field.
Sourcepub fn reactions(self, reactions: impl IntoIterator<Item = Reaction>) -> Self
pub fn reactions(self, reactions: impl IntoIterator<Item = Reaction>) -> Self
Sets the reactions
field.
Sourcepub fn extend_reactions(
self,
reactions: impl IntoIterator<Item = Reaction>,
) -> Self
pub fn extend_reactions( self, reactions: impl IntoIterator<Item = Reaction>, ) -> Self
Adds values to the reactions
field.
Sourcepub fn insert_attachments(self, attachments: AttachmentRid) -> Self
pub fn insert_attachments(self, attachments: AttachmentRid) -> Self
Adds a value to the attachments
field.
Sourcepub fn attachments(
self,
attachments: impl IntoIterator<Item = AttachmentRid>,
) -> Self
pub fn attachments( self, attachments: impl IntoIterator<Item = AttachmentRid>, ) -> Self
Sets the attachments
field.
Sourcepub fn extend_attachments(
self,
attachments: impl IntoIterator<Item = AttachmentRid>,
) -> Self
pub fn extend_attachments( self, attachments: impl IntoIterator<Item = AttachmentRid>, ) -> Self
Adds values to the attachments
field.
Trait Implementations§
Auto Trait Implementations§
impl<T> Freeze for Builder<T>where
T: Freeze,
impl<T> RefUnwindSafe for Builder<T>where
T: RefUnwindSafe,
impl<T> Send for Builder<T>where
T: Send,
impl<T> Sync for Builder<T>where
T: Sync,
impl<T> Unpin for Builder<T>where
T: Unpin,
impl<T> UnwindSafe for Builder<T>where
T: UnwindSafe,
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> 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