pub struct SecurityOpt(/* private fields */);Expand description
Security option (–security-opt in docker run). Must be a key:value pair.
§Example
let security_opt = SecurityOpt::parse("key:value").unwrap();
assert_eq!(security_opt.as_str(), "key:value");Implementations§
Trait Implementations§
Source§impl Clone for SecurityOpt
impl Clone for SecurityOpt
Source§fn clone(&self) -> SecurityOpt
fn clone(&self) -> SecurityOpt
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 SecurityOpt
impl Debug for SecurityOpt
Source§impl<'a> Deserialize<'a> for SecurityOpt
impl<'a> Deserialize<'a> for SecurityOpt
Source§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'a>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'a>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for SecurityOpt
impl Display for SecurityOpt
impl Eq for SecurityOpt
Source§impl FromStr for SecurityOpt
impl FromStr for SecurityOpt
Source§impl PartialEq for SecurityOpt
impl PartialEq for SecurityOpt
Source§fn eq(&self, other: &SecurityOpt) -> bool
fn eq(&self, other: &SecurityOpt) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for SecurityOpt
impl Serialize for SecurityOpt
impl StructuralPartialEq for SecurityOpt
Auto Trait Implementations§
impl Freeze for SecurityOpt
impl RefUnwindSafe for SecurityOpt
impl Send for SecurityOpt
impl Sync for SecurityOpt
impl Unpin for SecurityOpt
impl UnsafeUnpin for SecurityOpt
impl UnwindSafe for SecurityOpt
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.