pub enum SourceOptionValue {
String(String),
Bool(bool),
Int(i64),
Rational(Rational),
}Expand description
Script-provided scalar option for a source request.
Variants§
String(String)
String option.
Bool(bool)
Boolean option.
Int(i64)
Integer option.
Rational(Rational)
Rational option.
Trait Implementations§
Source§impl Clone for SourceOptionValue
impl Clone for SourceOptionValue
Source§fn clone(&self) -> SourceOptionValue
fn clone(&self) -> SourceOptionValue
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 SourceOptionValue
impl Debug for SourceOptionValue
Source§impl PartialEq for SourceOptionValue
impl PartialEq for SourceOptionValue
Source§fn eq(&self, other: &SourceOptionValue) -> bool
fn eq(&self, other: &SourceOptionValue) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for SourceOptionValue
impl StructuralPartialEq for SourceOptionValue
Auto Trait Implementations§
impl Freeze for SourceOptionValue
impl RefUnwindSafe for SourceOptionValue
impl Send for SourceOptionValue
impl Sync for SourceOptionValue
impl Unpin for SourceOptionValue
impl UnsafeUnpin for SourceOptionValue
impl UnwindSafe for SourceOptionValue
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