pub struct CommentBuilder<S: State = Empty> { /* private fields */ }Expand description
Use builder syntax to set the inputs and finish with build().
Implementations§
Source§impl<S: State> CommentBuilder<S>
impl<S: State> CommentBuilder<S>
Sourcepub fn build(self) -> Commentwhere
S: IsComplete,
pub fn build(self) -> Commentwhere
S: IsComplete,
Finish building and return the requested object
Sourcepub fn id(self, value: String) -> CommentBuilder<SetId<S>>where
S::Id: IsUnset,
pub fn id(self, value: String) -> CommentBuilder<SetId<S>>where
S::Id: IsUnset,
Required.
Sourcepub fn project_id(self, value: String) -> CommentBuilder<SetProjectId<S>>where
S::ProjectId: IsUnset,
pub fn project_id(self, value: String) -> CommentBuilder<SetProjectId<S>>where
S::ProjectId: IsUnset,
Required.
Sourcepub fn created_at(self, value: String) -> CommentBuilder<SetCreatedAt<S>>where
S::CreatedAt: IsUnset,
pub fn created_at(self, value: String) -> CommentBuilder<SetCreatedAt<S>>where
S::CreatedAt: IsUnset,
Required.
Sourcepub fn updated_at(self, value: String) -> CommentBuilder<SetUpdatedAt<S>>where
S::UpdatedAt: IsUnset,
pub fn updated_at(self, value: String) -> CommentBuilder<SetUpdatedAt<S>>where
S::UpdatedAt: IsUnset,
Required.
Sourcepub fn object_type(
self,
value: CommentObjectType,
) -> CommentBuilder<SetObjectType<S>>where
S::ObjectType: IsUnset,
pub fn object_type(
self,
value: CommentObjectType,
) -> CommentBuilder<SetObjectType<S>>where
S::ObjectType: IsUnset,
Required.
Sourcepub fn object_id(self, value: String) -> CommentBuilder<SetObjectId<S>>where
S::ObjectId: IsUnset,
pub fn object_id(self, value: String) -> CommentBuilder<SetObjectId<S>>where
S::ObjectId: IsUnset,
Required.
Sourcepub fn content(self, value: String) -> CommentBuilder<SetContent<S>>where
S::Content: IsUnset,
pub fn content(self, value: String) -> CommentBuilder<SetContent<S>>where
S::Content: IsUnset,
Required.
Auto Trait Implementations§
impl<S> Freeze for CommentBuilder<S>
impl<S> RefUnwindSafe for CommentBuilder<S>
impl<S> Send for CommentBuilder<S>
impl<S> Sync for CommentBuilder<S>
impl<S> Unpin for CommentBuilder<S>
impl<S> UnwindSafe for CommentBuilder<S>
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more