Struct peace_item_tar_x::TarXParamsFieldWise
source · pub struct TarXParamsFieldWise<Id>{ /* private fields */ }
Expand description
Specification of how to look up values for an item’s parameters.
Implementations§
source§impl<Id> TarXParamsFieldWise<Id>
impl<Id> TarXParamsFieldWise<Id>
sourcepub fn new(tar_path: ValueSpec<PathBuf>, dest: ValueSpec<PathBuf>) -> Self
pub fn new(tar_path: ValueSpec<PathBuf>, dest: ValueSpec<PathBuf>) -> Self
Returns a new TarXParamsFieldWise
.
pub fn tar_path(&self) -> &ValueSpec<PathBuf>
pub fn tar_path_mut(&mut self) -> &mut ValueSpec<PathBuf>
pub fn dest(&self) -> &ValueSpec<PathBuf>
pub fn dest_mut(&mut self) -> &mut ValueSpec<PathBuf>
Trait Implementations§
source§impl<Id> AnySpecRt for TarXParamsFieldWise<Id>
impl<Id> AnySpecRt for TarXParamsFieldWise<Id>
source§impl<Id> Clone for TarXParamsFieldWise<Id>
impl<Id> Clone for TarXParamsFieldWise<Id>
source§impl<Id> Debug for TarXParamsFieldWise<Id>
impl<Id> Debug for TarXParamsFieldWise<Id>
source§impl<'de, Id> Deserialize<'de> for TarXParamsFieldWise<Id>
impl<'de, Id> Deserialize<'de> for TarXParamsFieldWise<Id>
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl<Id> FieldWiseSpecRt for TarXParamsFieldWise<Id>
impl<Id> FieldWiseSpecRt for TarXParamsFieldWise<Id>
§type ValueType = TarXParams<Id>
type ValueType = TarXParams<Id>
The original value type.
MyParamsFieldWiseSpec::ValueType
is
MyParams
.§type Partial = TarXParamsPartial<Id>
type Partial = TarXParamsPartial<Id>
The
Params
type, but with each of its fields wrapped in Option
.source§fn resolve(
&self,
resources: &Resources<SetUp>,
value_resolution_ctx: &mut ValueResolutionCtx
) -> Result<TarXParams<Id>, ParamsResolveError>
fn resolve( &self, resources: &Resources<SetUp>, value_resolution_ctx: &mut ValueResolutionCtx ) -> Result<TarXParams<Id>, ParamsResolveError>
Resolves the values to construct the item
Params
. Read moresource§fn resolve_partial(
&self,
resources: &Resources<SetUp>,
value_resolution_ctx: &mut ValueResolutionCtx
) -> Result<TarXParamsPartial<Id>, ParamsResolveError>
fn resolve_partial( &self, resources: &Resources<SetUp>, value_resolution_ctx: &mut ValueResolutionCtx ) -> Result<TarXParamsPartial<Id>, ParamsResolveError>
Resolves the values to construct the item
Params
. Read moresource§impl<Id> From<TarXParams<Id>> for TarXParamsFieldWise<Id>
impl<Id> From<TarXParams<Id>> for TarXParamsFieldWise<Id>
source§fn from(params: TarXParams<Id>) -> Self
fn from(params: TarXParams<Id>) -> Self
Converts to this type from the input type.
source§impl<Id> Serialize for TarXParamsFieldWise<Id>
impl<Id> Serialize for TarXParamsFieldWise<Id>
source§impl<Id> ValueSpecRt for TarXParamsFieldWise<Id>
impl<Id> ValueSpecRt for TarXParamsFieldWise<Id>
§type ValueType = TarXParams<Id>
type ValueType = TarXParams<Id>
The original value type.
MyParamsValueSpec::ValueType
is MyParams
.source§fn resolve(
&self,
resources: &Resources<SetUp>,
value_resolution_ctx: &mut ValueResolutionCtx
) -> Result<TarXParams<Id>, ParamsResolveError>
fn resolve( &self, resources: &Resources<SetUp>, value_resolution_ctx: &mut ValueResolutionCtx ) -> Result<TarXParams<Id>, ParamsResolveError>
Resolves the value from resources. Read more
source§fn try_resolve(
&self,
resources: &Resources<SetUp>,
value_resolution_ctx: &mut ValueResolutionCtx
) -> Result<Option<TarXParams<Id>>, ParamsResolveError>
fn try_resolve( &self, resources: &Resources<SetUp>, value_resolution_ctx: &mut ValueResolutionCtx ) -> Result<Option<TarXParams<Id>>, ParamsResolveError>
Resolves the value from resources, returning
None
if it is not
present.Auto Trait Implementations§
impl<Id> !RefUnwindSafe for TarXParamsFieldWise<Id>
impl<Id> Send for TarXParamsFieldWise<Id>
impl<Id> Sync for TarXParamsFieldWise<Id>
impl<Id> Unpin for TarXParamsFieldWise<Id>where
Id: Unpin,
impl<Id> !UnwindSafe for TarXParamsFieldWise<Id>
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
§impl<T> DataType for T
impl<T> DataType for T
§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait>
(where Trait: Downcast
) to Box<dyn Any>
. Box<dyn Any>
can
then be further downcast
into Box<ConcreteType>
where ConcreteType
implements Trait
.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait>
(where Trait: Downcast
) to Rc<Any>
. Rc<Any>
can then be
further downcast
into Rc<ConcreteType>
where ConcreteType
implements Trait
.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &Any
’s vtable from &Trait
’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &mut Any
’s vtable from &mut Trait
’s.