pub struct FileCommentBuilder { /* private fields */ }Expand description
Builder for FileComment entity
Provides a fluent API for constructing FileComment instances. System fields (id, metadata, timestamps) are auto-initialized.
Implementations§
Source§impl FileCommentBuilder
impl FileCommentBuilder
Sourcepub fn annotation_region(self, value: Value) -> Self
pub fn annotation_region(self, value: Value) -> Self
Set the annotation_region field (optional)
Sourcepub fn resolved_by(self, value: Uuid) -> Self
pub fn resolved_by(self, value: Uuid) -> Self
Set the resolved_by field (optional)
Sourcepub fn resolved_at(self, value: DateTime<Utc>) -> Self
pub fn resolved_at(self, value: DateTime<Utc>) -> Self
Set the resolved_at field (optional)
Sourcepub fn status(self, value: CommentStatus) -> Self
pub fn status(self, value: CommentStatus) -> Self
Set the status field (default: CommentStatus::default())
Sourcepub fn build(self) -> Result<FileComment, String>
pub fn build(self) -> Result<FileComment, String>
Build the FileComment entity
Returns Err if any required field without a default is missing.
Trait Implementations§
Source§impl Clone for FileCommentBuilder
impl Clone for FileCommentBuilder
Source§impl Debug for FileCommentBuilder
impl Debug for FileCommentBuilder
Auto Trait Implementations§
impl Freeze for FileCommentBuilder
impl RefUnwindSafe for FileCommentBuilder
impl Send for FileCommentBuilder
impl Sync for FileCommentBuilder
impl Unpin for FileCommentBuilder
impl UnsafeUnpin for FileCommentBuilder
impl UnwindSafe for FileCommentBuilder
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreCreates a shared type from an unshared type.