Struct wash_lib::parser::CommonConfig
source · pub struct CommonConfig {
pub name: String,
pub version: Version,
pub revision: i32,
pub path: PathBuf,
pub wasm_bin_name: Option<String>,
pub registry: RegistryConfig,
}Expand description
Configuration common amoung all project types & languages.
Fields§
§name: StringName of the project.
version: VersionSemantic version of the project.
revision: i32Monotonically increasing revision number
path: PathBufPath to the project directory to determine where built and signed artifacts should be
wasm_bin_name: Option<String>Expected name of the wasm module binary that will be generated (if not present, name is expected to be used as a fallback)
registry: RegistryConfigOptional artifact OCI registry configuration. Primarily used for wash push & wash pull commands
Implementations§
source§impl CommonConfig
impl CommonConfig
sourcepub fn wasm_bin_name(&self) -> String
pub fn wasm_bin_name(&self) -> String
Helper function to get the Wasm name, falling back to the project name if not specified
Trait Implementations§
source§impl Clone for CommonConfig
impl Clone for CommonConfig
source§fn clone(&self) -> CommonConfig
fn clone(&self) -> CommonConfig
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 Debug for CommonConfig
impl Debug for CommonConfig
source§impl<'de> Deserialize<'de> for CommonConfig
impl<'de> Deserialize<'de> for CommonConfig
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 PartialEq for CommonConfig
impl PartialEq for CommonConfig
source§fn eq(&self, other: &CommonConfig) -> bool
fn eq(&self, other: &CommonConfig) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl Eq for CommonConfig
impl StructuralEq for CommonConfig
impl StructuralPartialEq for CommonConfig
Auto Trait Implementations§
impl RefUnwindSafe for CommonConfig
impl Send for CommonConfig
impl Sync for CommonConfig
impl Unpin for CommonConfig
impl UnwindSafe for CommonConfig
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.