pub enum ComponentImplementation {
Wasm(WasmComponentDefinition),
WasmRs(WasmRsComponent),
Composite(CompositeComponentImplementation),
Sql(SqlComponentConfig),
HttpClient(HttpClientComponentConfig),
}Expand description
A root-level wick component implementation.
Variants§
Wasm(WasmComponentDefinition)
A wasmRS component.
WasmRs(WasmRsComponent)
A wasmRS component.
Composite(CompositeComponentImplementation)
A composite component.
Sql(SqlComponentConfig)
A sql component.
HttpClient(HttpClientComponentConfig)
An http client component.
Implementations§
Source§impl ComponentImplementation
impl ComponentImplementation
Sourcepub const fn kind(&self) -> ComponentKind
pub const fn kind(&self) -> ComponentKind
Get the kind of component represented by this configuration.
Sourcepub fn operation_signatures(&self) -> Vec<OperationSignature>
pub fn operation_signatures(&self) -> Vec<OperationSignature>
Get the operation signatures for this component.
Sourcepub fn default_name(&self) -> &'static str
pub fn default_name(&self) -> &'static str
Get the default name for this component.
Trait Implementations§
Source§impl AssetManager for ComponentImplementation
impl AssetManager for ComponentImplementation
type Asset = AssetReference
fn set_baseurl(&self, baseurl: &Path)
fn assets(&self) -> Assets<'_, AssetReference>
fn get_asset_flags(&self) -> u32
Source§impl Clone for ComponentImplementation
impl Clone for ComponentImplementation
Source§fn clone(&self) -> ComponentImplementation
fn clone(&self) -> ComponentImplementation
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 Debug for ComponentImplementation
impl Debug for ComponentImplementation
Source§impl Default for ComponentImplementation
impl Default for ComponentImplementation
Source§impl Serialize for ComponentImplementation
impl Serialize for ComponentImplementation
Source§impl TryFrom<ComponentImplementation> for ComponentKind
impl TryFrom<ComponentImplementation> for ComponentKind
Source§type Error = ManifestError
type Error = ManifestError
The type returned in the event of a conversion error.
Source§impl TryFrom<ComponentKind> for ComponentImplementation
impl TryFrom<ComponentKind> for ComponentImplementation
Source§type Error = ManifestError
type Error = ManifestError
The type returned in the event of a conversion error.
Auto Trait Implementations§
impl Freeze for ComponentImplementation
impl !RefUnwindSafe for ComponentImplementation
impl Send for ComponentImplementation
impl Sync for ComponentImplementation
impl Unpin for ComponentImplementation
impl !UnwindSafe for ComponentImplementation
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