pub struct RunnableMetadataBuilder { /* private fields */ }Expand description
Builder for RunnableMetadata.
Implementations§
Source§impl RunnableMetadataBuilder
impl RunnableMetadataBuilder
pub fn id<VALUE: Into<Option<u64>>>(&mut self, value: VALUE) -> &mut Self
pub fn name<VALUE: Into<Option<String>>>(&mut self, value: VALUE) -> &mut Self
pub fn maximum_run_times<VALUE: Into<Option<u64>>>( &mut self, value: VALUE, ) -> &mut Self
pub fn maximum_parallelism<VALUE: Into<Option<u32>>>( &mut self, value: VALUE, ) -> &mut Self
pub fn schedule<VALUE: Into<Option<ScheduleTimeHolder>>>( &mut self, value: VALUE, ) -> &mut Self
Sourcepub fn build(&self) -> Result<RunnableMetadata, RunnableMetadataBuilderError>
pub fn build(&self) -> Result<RunnableMetadata, RunnableMetadataBuilderError>
Trait Implementations§
Source§impl Clone for RunnableMetadataBuilder
impl Clone for RunnableMetadataBuilder
Source§fn clone(&self) -> RunnableMetadataBuilder
fn clone(&self) -> RunnableMetadataBuilder
Returns a duplicate of the value. Read more
1.0.0 · 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 RunnableMetadataBuilder
impl RefUnwindSafe for RunnableMetadataBuilder
impl Send for RunnableMetadataBuilder
impl Sync for RunnableMetadataBuilder
impl Unpin for RunnableMetadataBuilder
impl UnwindSafe for RunnableMetadataBuilder
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