Struct wick_config::config::TypesConfiguration
source · pub struct TypesConfiguration { /* private fields */ }Expand description
A Wick types configuration.
A types configuration is a collection of shareable types and operation signatures used to generated code for components and other types.
Implementations§
source§impl TypesConfiguration
impl TypesConfiguration
pub fn name(&self) -> Option<&String>
pub fn set_name<T: Into<Option<String>>>(&mut self, val: T) -> &mut Self
pub fn name_mut(&mut self) -> &mut Option<String>
pub fn metadata(&self) -> Option<&Metadata>
pub fn set_metadata<T: Into<Option<Metadata>>>(&mut self, val: T) -> &mut Self
pub fn metadata_mut(&mut self) -> &mut Option<Metadata>
pub fn types(&self) -> &[TypeDefinition]
pub fn set_types<T: Into<TypeDefinition>>( &mut self, val: impl IntoIterator<Item = T> ) -> &mut Self
pub fn types_mut(&mut self) -> &mut Vec<TypeDefinition>
pub fn package(&self) -> Option<&PackageConfig>
pub fn set_package<T: Into<Option<PackageConfig>>>( &mut self, val: T ) -> &mut Self
pub fn package_mut(&mut self) -> &mut Option<PackageConfig>
source§impl TypesConfiguration
impl TypesConfiguration
sourcepub fn get_type(&self, name: &str) -> Option<&TypeDefinition>
pub fn get_type(&self, name: &str) -> Option<&TypeDefinition>
Get a type by name
sourcepub fn package_files(&self) -> Option<Assets<'_, AssetReference>>
pub fn package_files(&self) -> Option<Assets<'_, AssetReference>>
Get the package files
sourcepub fn set_source(&mut self, source: &Path)
pub fn set_source(&mut self, source: &Path)
Set the source location of the configuration.
sourcepub const fn env(&self) -> Option<&HashMap<String, String>>
pub const fn env(&self) -> Option<&HashMap<String, String>>
Return the environment variables for this configuration.
sourcepub fn validate(&self) -> Result<(), ManifestError>
pub fn validate(&self) -> Result<(), ManifestError>
Validate this configuration is good.
Trait Implementations§
source§impl AssetManager for TypesConfiguration
impl AssetManager for TypesConfiguration
type Asset = AssetReference
fn set_baseurl(&self, baseurl: &Path)
fn assets(&self) -> Assets<'_, AssetReference>
fn get_asset_flags(&self) -> u32
source§impl Clone for TypesConfiguration
impl Clone for TypesConfiguration
source§fn clone(&self) -> TypesConfiguration
fn clone(&self) -> TypesConfiguration
Returns a copy 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 moresource§impl ComponentConfig for TypesConfiguration
impl ComponentConfig for TypesConfiguration
type Operation = OperationDefinition
source§fn operations(&self) -> &[Self::Operation]
fn operations(&self) -> &[Self::Operation]
Get the operations defined by this configuration.
source§fn operations_mut(&mut self) -> &mut Vec<Self::Operation>
fn operations_mut(&mut self) -> &mut Vec<Self::Operation>
Get the operations defined by this configuration.
source§impl Debug for TypesConfiguration
impl Debug for TypesConfiguration
source§impl OperationSignatures for TypesConfiguration
impl OperationSignatures for TypesConfiguration
source§fn operation_signatures(&self) -> Vec<OperationSignature>
fn operation_signatures(&self) -> Vec<OperationSignature>
Get a list of operations hosted by the implementer.
source§fn get_operation_signature(&self, name: &str) -> Option<OperationSignature>
fn get_operation_signature(&self, name: &str) -> Option<OperationSignature>
Get an operation signature by name.
source§impl Serialize for TypesConfiguration
impl Serialize for TypesConfiguration
source§impl TryFrom<TypesConfiguration> for TypesConfiguration
impl TryFrom<TypesConfiguration> for TypesConfiguration
§type Error = ManifestError
type Error = ManifestError
The type returned in the event of a conversion error.
source§impl TryFrom<TypesConfiguration> for TypesConfiguration
impl TryFrom<TypesConfiguration> for TypesConfiguration
§type Error = ManifestError
type Error = ManifestError
The type returned in the event of a conversion error.
Auto Trait Implementations§
impl !RefUnwindSafe for TypesConfiguration
impl Send for TypesConfiguration
impl Sync for TypesConfiguration
impl Unpin for TypesConfiguration
impl !UnwindSafe for TypesConfiguration
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