Struct wash_lib::parser::ComponentConfig
source · pub struct ComponentConfig {
pub claims: Vec<String>,
pub push_insecure: bool,
pub key_directory: PathBuf,
pub call_alias: Option<String>,
pub wasm_target: WasmTarget,
pub wasi_preview2_adapter_path: Option<PathBuf>,
pub wit_world: Option<String>,
pub tags: Option<HashSet<String>>,
pub build_artifact: Option<PathBuf>,
pub build_command: Option<String>,
pub destination: Option<PathBuf>,
}Fields§
§claims: Vec<String>The list of provider claims that this actor requires. eg. [“wasmcloud:httpserver”, “wasmcloud:blobstore”]
push_insecure: boolWhether to push to the registry insecurely. Defaults to false.
key_directory: PathBufThe directory to store the private signing keys in.
call_alias: Option<String>The call alias of the actor.
wasm_target: WasmTargetThe target wasm target to build for. Defaults to “wasm32-unknown-unknown” (a WASM core module).
wasi_preview2_adapter_path: Option<PathBuf>Path to a wasm adapter that can be used for preview2
wit_world: Option<String>The WIT world that is implemented by the component
Tags that should be applied during the actor signing process
build_artifact: Option<PathBuf>File path wash can use to find the built artifact. Defaults to ./build/[name].wasm
build_command: Option<String>Optional build override command to run instead of attempting to use the native language
toolchain to build. Keep in mind that wash expects for the built artifact to be located
under the build directory of the project root unless overridden by build_artifact.
destination: Option<PathBuf>File path the built and signed actor should be written to. Defaults to ./build/[name]_s.wasm
Trait Implementations§
source§impl Clone for ComponentConfig
impl Clone for ComponentConfig
source§fn clone(&self) -> ComponentConfig
fn clone(&self) -> ComponentConfig
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for ComponentConfig
impl Debug for ComponentConfig
source§impl Default for ComponentConfig
impl Default for ComponentConfig
source§fn default() -> ComponentConfig
fn default() -> ComponentConfig
source§impl<'de> Deserialize<'de> for ComponentConfig
impl<'de> Deserialize<'de> for ComponentConfig
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>,
source§impl PartialEq for ComponentConfig
impl PartialEq for ComponentConfig
source§fn eq(&self, other: &ComponentConfig) -> bool
fn eq(&self, other: &ComponentConfig) -> bool
self and other values to be equal, and is used
by ==.impl Eq for ComponentConfig
impl StructuralPartialEq for ComponentConfig
Auto Trait Implementations§
impl Freeze for ComponentConfig
impl RefUnwindSafe for ComponentConfig
impl Send for ComponentConfig
impl Sync for ComponentConfig
impl Unpin for ComponentConfig
impl UnwindSafe for ComponentConfig
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
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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
key and return true if they are equal.source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§impl<T> FromBase64 for Twhere
T: for<'de> Deserialize<'de>,
impl<T> FromBase64 for Twhere
T: for<'de> Deserialize<'de>,
source§impl<T> FutureExt for T
impl<T> FutureExt for T
source§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
source§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
source§impl<T> GetSetFdFlags for T
impl<T> GetSetFdFlags for T
source§fn get_fd_flags(&self) -> Result<FdFlags, Error>where
T: AsFilelike,
fn get_fd_flags(&self) -> Result<FdFlags, Error>where
T: AsFilelike,
self file descriptor.source§fn new_set_fd_flags(&self, fd_flags: FdFlags) -> Result<SetFdFlags<T>, Error>where
T: AsFilelike,
fn new_set_fd_flags(&self, fd_flags: FdFlags) -> Result<SetFdFlags<T>, Error>where
T: AsFilelike,
source§fn set_fd_flags(&mut self, set_fd_flags: SetFdFlags<T>) -> Result<(), Error>where
T: AsFilelike,
fn set_fd_flags(&mut self, set_fd_flags: SetFdFlags<T>) -> Result<(), Error>where
T: AsFilelike,
self file descriptor. Read moresource§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more