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) -> Builder<Complete>
pub fn rid(self, rid: CommentRid) -> Builder<Complete>
Sets the rid field.
Sourcepub fn parent(self, parent: CommentParent) -> Builder<Complete>
pub fn parent(self, parent: CommentParent) -> Builder<Complete>
Sets the parent field.
Sets the author_rid field.
Sourcepub fn created_at(self, created_at: DateTime<Utc>) -> Builder<Complete>
pub fn created_at(self, created_at: DateTime<Utc>) -> Builder<Complete>
Sets the created_at field.
Sourcepub fn edited_at(
self,
edited_at: impl Into<Option<DateTime<Utc>>>,
) -> Builder<Complete>
pub fn edited_at( self, edited_at: impl Into<Option<DateTime<Utc>>>, ) -> Builder<Complete>
Sets the edited_at field.
Sourcepub fn deleted_at(
self,
deleted_at: impl Into<Option<DateTime<Utc>>>,
) -> Builder<Complete>
pub fn deleted_at( self, deleted_at: impl Into<Option<DateTime<Utc>>>, ) -> Builder<Complete>
Sets the deleted_at field.
Sourcepub fn pinned_by(
self,
pinned_by: impl Into<Option<ResourceIdentifier>>,
) -> Builder<Complete>
pub fn pinned_by( self, pinned_by: impl Into<Option<ResourceIdentifier>>, ) -> Builder<Complete>
Sets the pinned_by field.
Sourcepub fn pinned_at(
self,
pinned_at: impl Into<Option<DateTime<Utc>>>,
) -> Builder<Complete>
pub fn pinned_at( self, pinned_at: impl Into<Option<DateTime<Utc>>>, ) -> Builder<Complete>
Sets the pinned_at field.
Sourcepub fn push_reactions(self, reactions: Reaction) -> Builder<Complete>
pub fn push_reactions(self, reactions: Reaction) -> Builder<Complete>
Adds a value to the reactions field.
Sourcepub fn reactions(
self,
reactions: impl IntoIterator<Item = Reaction>,
) -> Builder<Complete>
pub fn reactions( self, reactions: impl IntoIterator<Item = Reaction>, ) -> Builder<Complete>
Sets the reactions field.
Sourcepub fn extend_reactions(
self,
reactions: impl IntoIterator<Item = Reaction>,
) -> Builder<Complete>
pub fn extend_reactions( self, reactions: impl IntoIterator<Item = Reaction>, ) -> Builder<Complete>
Adds values to the reactions field.
Sourcepub fn insert_attachments(self, attachments: AttachmentRid) -> Builder<Complete>
pub fn insert_attachments(self, attachments: AttachmentRid) -> Builder<Complete>
Adds a value to the attachments field.
Sourcepub fn attachments(
self,
attachments: impl IntoIterator<Item = AttachmentRid>,
) -> Builder<Complete>
pub fn attachments( self, attachments: impl IntoIterator<Item = AttachmentRid>, ) -> Builder<Complete>
Sets the attachments field.
Sourcepub fn extend_attachments(
self,
attachments: impl IntoIterator<Item = AttachmentRid>,
) -> Builder<Complete>
pub fn extend_attachments( self, attachments: impl IntoIterator<Item = AttachmentRid>, ) -> Builder<Complete>
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> UnsafeUnpin for Builder<T>where
T: UnsafeUnpin,
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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