pub struct ComponentSpec {
pub enabled: bool,
pub config: AdaptiveConfig,
}Expand description
One configured adaptive component.
Fields§
§enabled: boolWhether the adaptive component should be activated.
config: AdaptiveConfigAdaptive config for this top-level component.
Implementations§
Source§impl ComponentSpec
impl ComponentSpec
Sourcepub fn new(config: AdaptiveConfig) -> Self
pub fn new(config: AdaptiveConfig) -> Self
Creates an enabled adaptive component spec.
Trait Implementations§
Source§impl Clone for ComponentSpec
impl Clone for ComponentSpec
Source§fn clone(&self) -> ComponentSpec
fn clone(&self) -> ComponentSpec
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ComponentSpec
impl Debug for ComponentSpec
Source§impl From<ComponentSpec> for PluginComponentSpec
impl From<ComponentSpec> for PluginComponentSpec
Source§fn from(value: ComponentSpec) -> Self
fn from(value: ComponentSpec) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ComponentSpec
impl RefUnwindSafe for ComponentSpec
impl Send for ComponentSpec
impl Sync for ComponentSpec
impl Unpin for ComponentSpec
impl UnsafeUnpin for ComponentSpec
impl UnwindSafe for ComponentSpec
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