pub struct WasmComponentDefinition { /* private fields */ }Expand description
The internal representation of a Wick manifest.
Implementations§
Source§impl WasmComponentDefinition
impl WasmComponentDefinition
pub fn reference(&self) -> &AssetReference
pub fn set_reference<T: Into<AssetReference>>(&mut self, val: T) -> &mut Self
pub fn reference_mut(&mut self) -> &mut AssetReference
pub fn config(&self) -> &[Field]
pub fn set_config<T: Into<Field>>( &mut self, val: impl IntoIterator<Item = T>, ) -> &mut Self
pub fn config_mut(&mut self) -> &mut Vec<Field>
pub fn volumes(&self) -> &[ExposedVolume]
pub fn set_volumes<T: Into<ExposedVolume>>( &mut self, val: impl IntoIterator<Item = T>, ) -> &mut Self
pub fn volumes_mut(&mut self) -> &mut Vec<ExposedVolume>
Trait Implementations§
Source§impl AssetManager for WasmComponentDefinition
impl AssetManager for WasmComponentDefinition
type Asset = AssetReference
fn set_baseurl(&self, baseurl: &Path)
fn assets(&self) -> Assets<'_, AssetReference>
fn get_asset_flags(&self) -> u32
Source§impl Clone for WasmComponentDefinition
impl Clone for WasmComponentDefinition
Source§fn clone(&self) -> WasmComponentDefinition
fn clone(&self) -> WasmComponentDefinition
Returns a duplicate 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 WasmComponentDefinition
impl ComponentConfig for WasmComponentDefinition
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 WasmComponentDefinition
impl Debug for WasmComponentDefinition
Source§impl OperationSignatures for WasmComponentDefinition
impl OperationSignatures for WasmComponentDefinition
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 WasmComponentDefinition
impl Serialize for WasmComponentDefinition
Source§impl TryFrom<WasmComponentDefinition> for WasmComponentModel
impl TryFrom<WasmComponentDefinition> for WasmComponentModel
Source§type Error = ManifestError
type Error = ManifestError
The type returned in the event of a conversion error.
Source§impl TryFrom<WasmComponentModel> for WasmComponentDefinition
impl TryFrom<WasmComponentModel> for WasmComponentDefinition
Source§type Error = ManifestError
type Error = ManifestError
The type returned in the event of a conversion error.
Auto Trait Implementations§
impl Freeze for WasmComponentDefinition
impl !RefUnwindSafe for WasmComponentDefinition
impl Send for WasmComponentDefinition
impl Sync for WasmComponentDefinition
impl Unpin for WasmComponentDefinition
impl !UnwindSafe for WasmComponentDefinition
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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>
Converts
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>
Converts
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