pub struct NetworkDriverOption { /* private fields */ }Expand description
One driver-specific network option with independently sourced key and value.
Values remain protected because provider options can carry deployment-specific credentials or
topology details. They remain separate fields so adapters never need to parse a synthetic
key=value assignment.
Implementations§
Source§impl NetworkDriverOption
impl NetworkDriverOption
Sourcepub fn new(
name: Sourced<Identifier>,
value: Sourced<ProtectedString>,
) -> Result<Self, ModelError>
pub fn new( name: Sourced<Identifier>, value: Sourced<ProtectedString>, ) -> Result<Self, ModelError>
Creates one driver option with field-level provenance.
§Errors
Returns ModelError::ContainsNul when the option value contains a NUL byte. An empty
value is retained because source mappings may explicitly reset a driver option.
Sourcepub const fn name(&self) -> &Sourced<Identifier>
pub const fn name(&self) -> &Sourced<Identifier>
Returns the driver-option key and its provenance.
Sourcepub const fn value(&self) -> &Sourced<ProtectedString>
pub const fn value(&self) -> &Sourced<ProtectedString>
Returns the protected driver-option value and its provenance.
Trait Implementations§
Source§impl Clone for NetworkDriverOption
impl Clone for NetworkDriverOption
Source§fn clone(&self) -> NetworkDriverOption
fn clone(&self) -> NetworkDriverOption
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 NetworkDriverOption
impl Debug for NetworkDriverOption
impl Eq for NetworkDriverOption
Source§impl PartialEq for NetworkDriverOption
impl PartialEq for NetworkDriverOption
impl StructuralPartialEq for NetworkDriverOption
Auto Trait Implementations§
impl Freeze for NetworkDriverOption
impl RefUnwindSafe for NetworkDriverOption
impl Send for NetworkDriverOption
impl Sync for NetworkDriverOption
impl Unpin for NetworkDriverOption
impl UnsafeUnpin for NetworkDriverOption
impl UnwindSafe for NetworkDriverOption
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