pub struct WorkspaceInitializer;
Expand description
Logic to create peace directories and reads/writes initialization params.
§Type Parameters
-
WorkspaceInit
: Parameters to initialize the workspace.These are parameters common to the workspace. Examples:
- Organization username.
- Repository URL for multiple environments.
This may be
()
if there are no parameters common to the workspace. -
ProfileInit
: Parameters to initialize the profile.These are parameters specific to a profile, but common to flows within that profile. Examples:
- Environment specific credentials.
- URL to publish / download an artifact.
This may be
()
if there are no profile specific parameters. -
FlowInit
: Parameters to initialize the flow.These are parameters specific to a flow. Examples:
- Configuration to skip warnings for the particular flow.
This may be
()
if there are no flow specific parameters.
Implementations§
Source§impl WorkspaceInitializer
impl WorkspaceInitializer
Sourcepub async fn dirs_create<'f, I>(dirs: I) -> Result<(), Error>where
I: IntoIterator<Item = &'f Path>,
pub async fn dirs_create<'f, I>(dirs: I) -> Result<(), Error>where
I: IntoIterator<Item = &'f Path>,
Creates directories used by the peace framework.
pub async fn workspace_params_serialize<K>( storage: &Storage, workspace_params: &WorkspaceParams<K>, workspace_params_file: &WorkspaceParamsFile, ) -> Result<(), Error>
pub async fn workspace_params_deserialize<K>( storage: &Storage, type_reg: &TypeReg<K>, workspace_params_file: &WorkspaceParamsFile, ) -> Result<Option<WorkspaceParams<K>>, Error>
pub async fn profile_params_serialize<K>( storage: &Storage, profile_params: &ProfileParams<K>, profile_params_file: &ProfileParamsFile, ) -> Result<(), Error>
pub async fn profile_params_deserialize<K>( storage: &Storage, type_reg: &TypeReg<K>, profile_params_file: &ProfileParamsFile, ) -> Result<Option<ProfileParams<K>>, Error>
pub async fn flow_params_serialize<K>( storage: &Storage, flow_params: &FlowParams<K>, flow_params_file: &FlowParamsFile, ) -> Result<(), Error>
pub async fn flow_params_deserialize<K>( storage: &Storage, type_reg: &TypeReg<K>, flow_params_file: &FlowParamsFile, ) -> Result<Option<FlowParams<K>>, Error>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for WorkspaceInitializer
impl RefUnwindSafe for WorkspaceInitializer
impl Send for WorkspaceInitializer
impl Sync for WorkspaceInitializer
impl Unpin for WorkspaceInitializer
impl UnwindSafe for WorkspaceInitializer
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> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Converts
Box<dyn Trait>
(where Trait: Downcast
) to Box<dyn Any>
, which can then be
downcast
into Box<dyn ConcreteType>
where ConcreteType
implements Trait
.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Converts
Rc<Trait>
(where Trait: Downcast
) to Rc<Any>
, which can then be further
downcast
into Rc<ConcreteType>
where ConcreteType
implements Trait
.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Converts
&Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &Any
’s vtable from &Trait
’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Converts
&mut Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &mut Any
’s vtable from &mut Trait
’s.