pub struct Builder<T>(/* private fields */);Expand description
A builder for Commit
Implementations§
Source§impl Builder<IdStage>
 
impl Builder<IdStage>
Sourcepub fn id(self, id: CommitId) -> Builder<ResourceRidStage>
 
pub fn id(self, id: CommitId) -> Builder<ResourceRidStage>
Sets the id field.
Source§impl Builder<ResourceRidStage>
 
impl Builder<ResourceRidStage>
Sourcepub fn resource_rid(
    self,
    resource_rid: ResourceIdentifier,
) -> Builder<MessageStage>
 
pub fn resource_rid( self, resource_rid: ResourceIdentifier, ) -> Builder<MessageStage>
Sets the resource_rid field.
Source§impl Builder<MessageStage>
 
impl Builder<MessageStage>
Source§impl Builder<IsWorkingStateStage>
 
impl Builder<IsWorkingStateStage>
Sourcepub fn is_working_state(
    self,
    is_working_state: bool,
) -> Builder<CommittedByStage>
 
pub fn is_working_state( self, is_working_state: bool, ) -> Builder<CommittedByStage>
Sets the is_working_state field.
Source§impl Builder<CommittedByStage>
 
impl Builder<CommittedByStage>
Sourcepub fn committed_by(self, committed_by: UserRid) -> Builder<CommittedAtStage>
 
pub fn committed_by(self, committed_by: UserRid) -> Builder<CommittedAtStage>
Sets the committed_by field.
Source§impl Builder<Complete>
 
impl Builder<Complete>
Sourcepub fn resource_rid(self, resource_rid: ResourceIdentifier) -> Self
 
pub fn resource_rid(self, resource_rid: ResourceIdentifier) -> Self
Sets the resource_rid field.
Sourcepub fn parent_commit(self, parent_commit: impl Into<Option<CommitId>>) -> Self
 
pub fn parent_commit(self, parent_commit: impl Into<Option<CommitId>>) -> Self
Sets the parent_commit field.
Sourcepub fn merge_parent_commit(
    self,
    merge_parent_commit: impl Into<Option<CommitId>>,
) -> Self
 
pub fn merge_parent_commit( self, merge_parent_commit: impl Into<Option<CommitId>>, ) -> Self
Sets the merge_parent_commit field.
Sourcepub fn is_working_state(self, is_working_state: bool) -> Self
 
pub fn is_working_state(self, is_working_state: bool) -> Self
Sets the is_working_state field.
Sourcepub fn committed_by(self, committed_by: UserRid) -> Self
 
pub fn committed_by(self, committed_by: UserRid) -> Self
Sets the committed_by field.
Sourcepub fn committed_at(self, committed_at: DateTime<Utc>) -> Self
 
pub fn committed_at(self, committed_at: DateTime<Utc>) -> Self
Sets the committed_at 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