#[non_exhaustive]pub enum ProviderOptionValue {
Scalar(Located<ComposeScalar>),
Sequence {
span: SourceSpan,
items: Vec<ProviderOptionItem>,
},
}Expand description
One authored scalar or sequence value in a service provider option.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Scalar(Located<ComposeScalar>)
One YAML string, number, or boolean scalar.
Sequence
An ordered sequence of provider-option items.
Fields
§
span: SourceSpanComplete sequence span.
§
items: Vec<ProviderOptionItem>Valid and malformed items in authored order.
Implementations§
Source§impl ProviderOptionValue
impl ProviderOptionValue
Sourcepub const fn span(&self) -> SourceSpan
pub const fn span(&self) -> SourceSpan
Returns the complete value span.
Trait Implementations§
Source§impl Clone for ProviderOptionValue
impl Clone for ProviderOptionValue
Source§fn clone(&self) -> ProviderOptionValue
fn clone(&self) -> ProviderOptionValue
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 ProviderOptionValue
impl Debug for ProviderOptionValue
impl Eq for ProviderOptionValue
Source§impl PartialEq for ProviderOptionValue
impl PartialEq for ProviderOptionValue
impl StructuralPartialEq for ProviderOptionValue
Auto Trait Implementations§
impl Freeze for ProviderOptionValue
impl RefUnwindSafe for ProviderOptionValue
impl Send for ProviderOptionValue
impl Sync for ProviderOptionValue
impl Unpin for ProviderOptionValue
impl UnsafeUnpin for ProviderOptionValue
impl UnwindSafe for ProviderOptionValue
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