pub struct ContractBuilder<S: State = Empty> { /* private fields */ }Expand description
Use builder syntax to set the inputs and finish with build().
Implementations§
Source§impl<S: State> ContractBuilder<S>
impl<S: State> ContractBuilder<S>
Sourcepub fn build(self) -> Contractwhere
S: IsComplete,
pub fn build(self) -> Contractwhere
S: IsComplete,
Finish building and return the requested object
Sourcepub fn calendar(self, value: Policy) -> ContractBuilder<SetCalendar<S>>where
S::Calendar: IsUnset,
pub fn calendar(self, value: Policy) -> ContractBuilder<SetCalendar<S>>where
S::Calendar: IsUnset,
Required.
Source-derived calendar carried by this grooming contract.
Sourcepub fn time_estimates(
self,
value: Vec<TimeEstimate>,
) -> ContractBuilder<SetTimeEstimates<S>>where
S::TimeEstimates: IsUnset,
pub fn time_estimates(
self,
value: Vec<TimeEstimate>,
) -> ContractBuilder<SetTimeEstimates<S>>where
S::TimeEstimates: IsUnset,
Sourcepub fn maybe_time_estimates(
self,
value: Option<Vec<TimeEstimate>>,
) -> ContractBuilder<SetTimeEstimates<S>>where
S::TimeEstimates: IsUnset,
pub fn maybe_time_estimates(
self,
value: Option<Vec<TimeEstimate>>,
) -> ContractBuilder<SetTimeEstimates<S>>where
S::TimeEstimates: IsUnset,
Sourcepub fn no_show(self, value: Rule) -> ContractBuilder<SetNoShow<S>>where
S::NoShow: IsUnset,
pub fn no_show(self, value: Rule) -> ContractBuilder<SetNoShow<S>>where
S::NoShow: IsUnset,
Required.
Source-derived no show carried by this grooming contract.
Sourcepub fn rebooking(self, value: Cadence) -> ContractBuilder<SetRebooking<S>>where
S::Rebooking: IsUnset,
pub fn rebooking(self, value: Cadence) -> ContractBuilder<SetRebooking<S>>where
S::Rebooking: IsUnset,
Required.
Source-derived rebooking carried by this grooming contract.
Sourcepub fn reminders(self, value: Vec<Rule>) -> ContractBuilder<SetReminders<S>>where
S::Reminders: IsUnset,
pub fn reminders(self, value: Vec<Rule>) -> ContractBuilder<SetReminders<S>>where
S::Reminders: IsUnset,
Sourcepub fn maybe_reminders(
self,
value: Option<Vec<Rule>>,
) -> ContractBuilder<SetReminders<S>>where
S::Reminders: IsUnset,
pub fn maybe_reminders(
self,
value: Option<Vec<Rule>>,
) -> ContractBuilder<SetReminders<S>>where
S::Reminders: IsUnset,
Sourcepub fn history(
self,
value: HistoryRequirement,
) -> ContractBuilder<SetHistory<S>>where
S::History: IsUnset,
pub fn history(
self,
value: HistoryRequirement,
) -> ContractBuilder<SetHistory<S>>where
S::History: IsUnset,
Required.
Source-derived history carried by this grooming contract.
Auto Trait Implementations§
impl<S> Freeze for ContractBuilder<S>
impl<S> RefUnwindSafe for ContractBuilder<S>
impl<S> Send for ContractBuilder<S>
impl<S> Sync for ContractBuilder<S>
impl<S> Unpin for ContractBuilder<S>
impl<S> UnsafeUnpin for ContractBuilder<S>
impl<S> UnwindSafe for ContractBuilder<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