Struct wasm_compose::graph::EncodeOptions
source · pub struct EncodeOptions {
pub define_components: bool,
pub export: Option<InstanceId>,
pub validate: bool,
}
Expand description
The options for encoding a composition graph.
Fields§
§define_components: bool
Whether or not to define instantiated components.
If false
, components will be imported instead.
export: Option<InstanceId>
The instance in the graph to export.
If Some
, the instance’s exports will be aliased and
exported from the resulting component.
validate: bool
Whether or not to validate the encoded output.
Trait Implementations§
source§impl Clone for EncodeOptions
impl Clone for EncodeOptions
source§fn clone(&self) -> EncodeOptions
fn clone(&self) -> EncodeOptions
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 EncodeOptions
impl Debug for EncodeOptions
source§impl Default for EncodeOptions
impl Default for EncodeOptions
source§fn default() -> EncodeOptions
fn default() -> EncodeOptions
Returns the “default value” for a type. Read more
source§impl PartialEq for EncodeOptions
impl PartialEq for EncodeOptions
source§fn eq(&self, other: &EncodeOptions) -> bool
fn eq(&self, other: &EncodeOptions) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for EncodeOptions
impl Eq for EncodeOptions
impl StructuralEq for EncodeOptions
impl StructuralPartialEq for EncodeOptions
Auto Trait Implementations§
impl RefUnwindSafe for EncodeOptions
impl Send for EncodeOptions
impl Sync for EncodeOptions
impl Unpin for EncodeOptions
impl UnwindSafe for EncodeOptions
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.