pub struct ContributionPatchBuilder<St: State, S: BosStr = DefaultStr> { /* private fields */ }Expand description
Builder for constructing an instance of this type.
Implementations§
Source§impl<S: BosStr> ContributionPatchBuilder<Empty, S>
impl<S: BosStr> ContributionPatchBuilder<Empty, S>
Source§impl<St, S: BosStr> ContributionPatchBuilder<St, S>
impl<St, S: BosStr> ContributionPatchBuilder<St, S>
Sourcepub fn changes(
self,
value: impl Into<Data<S>>,
) -> ContributionPatchBuilder<SetChanges<St>, S>
pub fn changes( self, value: impl Into<Data<S>>, ) -> ContributionPatchBuilder<SetChanges<St>, S>
Set the changes field (required)
Source§impl<St, S: BosStr> ContributionPatchBuilder<St, S>
impl<St, S: BosStr> ContributionPatchBuilder<St, S>
Sourcepub fn contribution(
self,
value: impl Into<StrongRef<S>>,
) -> ContributionPatchBuilder<SetContribution<St>, S>
pub fn contribution( self, value: impl Into<StrongRef<S>>, ) -> ContributionPatchBuilder<SetContribution<St>, S>
Set the contribution field (required)
Source§impl<St, S: BosStr> ContributionPatchBuilder<St, S>
impl<St, S: BosStr> ContributionPatchBuilder<St, S>
Sourcepub fn contribution_review(
self,
value: impl Into<StrongRef<S>>,
) -> ContributionPatchBuilder<SetContributionReview<St>, S>
pub fn contribution_review( self, value: impl Into<StrongRef<S>>, ) -> ContributionPatchBuilder<SetContributionReview<St>, S>
Set the contributionReview field (required)
Source§impl<St, S: BosStr> ContributionPatchBuilder<St, S>
impl<St, S: BosStr> ContributionPatchBuilder<St, S>
Sourcepub fn created_at(
self,
value: impl Into<Datetime>,
) -> ContributionPatchBuilder<SetCreatedAt<St>, S>
pub fn created_at( self, value: impl Into<Datetime>, ) -> ContributionPatchBuilder<SetCreatedAt<St>, S>
Set the createdAt field (required)
Source§impl<St: State, S: BosStr> ContributionPatchBuilder<St, S>
impl<St: State, S: BosStr> ContributionPatchBuilder<St, S>
Source§impl<St, S: BosStr> ContributionPatchBuilder<St, S>where
St: State,
St::Changes: IsSet,
St::Contribution: IsSet,
St::ContributionReview: IsSet,
St::CreatedAt: IsSet,
impl<St, S: BosStr> ContributionPatchBuilder<St, S>where
St: State,
St::Changes: IsSet,
St::Contribution: IsSet,
St::ContributionReview: IsSet,
St::CreatedAt: IsSet,
Sourcepub fn build(self) -> ContributionPatch<S>
pub fn build(self) -> ContributionPatch<S>
Build the final struct.
Sourcepub fn build_with_data(
self,
extra_data: BTreeMap<SmolStr, Data<S>>,
) -> ContributionPatch<S>
pub fn build_with_data( self, extra_data: BTreeMap<SmolStr, Data<S>>, ) -> ContributionPatch<S>
Build the final struct with custom extra_data.
Auto Trait Implementations§
impl<St, S = SmolStr> !Freeze for ContributionPatchBuilder<St, S>
impl<St, S> RefUnwindSafe for ContributionPatchBuilder<St, S>where
S: RefUnwindSafe,
impl<St, S> Send for ContributionPatchBuilder<St, S>where
S: Send,
impl<St, S> Sync for ContributionPatchBuilder<St, S>where
S: Sync,
impl<St, S> Unpin for ContributionPatchBuilder<St, S>where
S: Unpin,
impl<St, S> UnsafeUnpin for ContributionPatchBuilder<St, S>where
S: UnsafeUnpin,
impl<St, S> UnwindSafe for ContributionPatchBuilder<St, S>where
S: UnwindSafe + RefUnwindSafe,
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