pub struct EffectWindowV1Builder { /* private fields */ }Expand description
Builder for EffectWindowV1.
Implementations§
Source§impl EffectWindowV1Builder
impl EffectWindowV1Builder
Sourcepub fn new(
effect_window_id: EffectWindowId,
earliest_start: impl Into<String>,
latest_admissible_start: impl Into<String>,
timeout_at: impl Into<String>,
commit_atomicity: CommitAtomicityV1,
retry_owner: RetryOwnerV1,
close_midflight_behavior: CloseMidflightBehaviorV1,
) -> Self
pub fn new( effect_window_id: EffectWindowId, earliest_start: impl Into<String>, latest_admissible_start: impl Into<String>, timeout_at: impl Into<String>, commit_atomicity: CommitAtomicityV1, retry_owner: RetryOwnerV1, close_midflight_behavior: CloseMidflightBehaviorV1, ) -> Self
Creates a builder with the required execution window fields.
Sourcepub fn build(self) -> Result<EffectWindowV1, EffectRuntimeValidationError>
pub fn build(self) -> Result<EffectWindowV1, EffectRuntimeValidationError>
Builds a validated execution window artifact.
Trait Implementations§
Source§impl Clone for EffectWindowV1Builder
impl Clone for EffectWindowV1Builder
Source§fn clone(&self) -> EffectWindowV1Builder
fn clone(&self) -> EffectWindowV1Builder
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for EffectWindowV1Builder
impl RefUnwindSafe for EffectWindowV1Builder
impl Send for EffectWindowV1Builder
impl Sync for EffectWindowV1Builder
impl Unpin for EffectWindowV1Builder
impl UnsafeUnpin for EffectWindowV1Builder
impl UnwindSafe for EffectWindowV1Builder
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