pub struct CommentBuilder<'a, S: State> { /* private fields */ }Expand description
Builder for constructing an instance of this type
Implementations§
Source§impl<'a> CommentBuilder<'a, Empty>
impl<'a> CommentBuilder<'a, Empty>
Source§impl<'a, S: State> CommentBuilder<'a, S>
impl<'a, S: State> CommentBuilder<'a, S>
Sourcepub fn attachment(
self,
value: impl Into<Option<LinearDocumentQuote<'a>>>,
) -> Self
pub fn attachment( self, value: impl Into<Option<LinearDocumentQuote<'a>>>, ) -> Self
Set the attachment field (optional)
Sourcepub fn maybe_attachment(self, value: Option<LinearDocumentQuote<'a>>) -> Self
pub fn maybe_attachment(self, value: Option<LinearDocumentQuote<'a>>) -> Self
Set the attachment field to an Option value (optional)
Source§impl<'a, S> CommentBuilder<'a, S>
impl<'a, S> CommentBuilder<'a, S>
Sourcepub fn created_at(
self,
value: impl Into<Datetime>,
) -> CommentBuilder<'a, SetCreatedAt<S>>
pub fn created_at( self, value: impl Into<Datetime>, ) -> CommentBuilder<'a, SetCreatedAt<S>>
Set the createdAt field (required)
Source§impl<'a, S: State> CommentBuilder<'a, S>
impl<'a, S: State> CommentBuilder<'a, S>
Source§impl<'a, S: State> CommentBuilder<'a, S>
impl<'a, S: State> CommentBuilder<'a, S>
Source§impl<'a, S> CommentBuilder<'a, S>
impl<'a, S> CommentBuilder<'a, S>
Sourcepub fn plaintext(
self,
value: impl Into<CowStr<'a>>,
) -> CommentBuilder<'a, SetPlaintext<S>>
pub fn plaintext( self, value: impl Into<CowStr<'a>>, ) -> CommentBuilder<'a, SetPlaintext<S>>
Set the plaintext field (required)
Source§impl<'a, S: State> CommentBuilder<'a, S>
impl<'a, S: State> CommentBuilder<'a, S>
Source§impl<'a, S> CommentBuilder<'a, S>
impl<'a, S> CommentBuilder<'a, S>
Sourcepub fn subject(
self,
value: impl Into<AtUri<'a>>,
) -> CommentBuilder<'a, SetSubject<S>>
pub fn subject( self, value: impl Into<AtUri<'a>>, ) -> CommentBuilder<'a, SetSubject<S>>
Set the subject field (required)
Source§impl<'a, S> CommentBuilder<'a, S>
impl<'a, S> CommentBuilder<'a, S>
Auto Trait Implementations§
impl<'a, S> Freeze for CommentBuilder<'a, S>
impl<'a, S> RefUnwindSafe for CommentBuilder<'a, S>
impl<'a, S> Send for CommentBuilder<'a, S>
impl<'a, S> Sync for CommentBuilder<'a, S>
impl<'a, S> Unpin for CommentBuilder<'a, S>
impl<'a, S> UnwindSafe for CommentBuilder<'a, S>
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