pub enum OptionKind {
Boolean,
Integer,
String,
}Expand description
The value type of a plugin option — the WIT-agnostic mirror of the config
interface’s option-type enum. The plugin maps this to the generated
option-type at the register-option call site (the SDK can’t name the
per-world WIT type — approach A).
Variants§
Boolean
A bool option; the derive picks it for a bool field.
Integer
A signed integer option; the derive picks it for an i64 field.
String
A free-form string option; the derive picks it for a String field.
Trait Implementations§
Source§impl Clone for OptionKind
impl Clone for OptionKind
Source§fn clone(&self) -> OptionKind
fn clone(&self) -> OptionKind
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 moreimpl Copy for OptionKind
Source§impl Debug for OptionKind
impl Debug for OptionKind
impl Eq for OptionKind
Source§impl PartialEq for OptionKind
impl PartialEq for OptionKind
impl StructuralPartialEq for OptionKind
Auto Trait Implementations§
impl Freeze for OptionKind
impl RefUnwindSafe for OptionKind
impl Send for OptionKind
impl Sync for OptionKind
impl Unpin for OptionKind
impl UnsafeUnpin for OptionKind
impl UnwindSafe for OptionKind
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