pub struct DestructiveToken {
pub device_identifier: String,
pub volume_label: String,
}Expand description
Destructive-operation token. Callers that confirm a format or
erase action must pass a token whose device_identifier field
matches the target device exactly.
Fields§
§device_identifier: StringDevice identifier such as disk2s2.
volume_label: StringVolume label, when available. Empty string if the volume is unlabelled.
Implementations§
Trait Implementations§
Source§impl Clone for DestructiveToken
impl Clone for DestructiveToken
Source§fn clone(&self) -> DestructiveToken
fn clone(&self) -> DestructiveToken
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 DestructiveToken
impl Debug for DestructiveToken
Source§impl<'de> Deserialize<'de> for DestructiveToken
impl<'de> Deserialize<'de> for DestructiveToken
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for DestructiveToken
Source§impl PartialEq for DestructiveToken
impl PartialEq for DestructiveToken
Source§impl Serialize for DestructiveToken
impl Serialize for DestructiveToken
impl StructuralPartialEq for DestructiveToken
Auto Trait Implementations§
impl Freeze for DestructiveToken
impl RefUnwindSafe for DestructiveToken
impl Send for DestructiveToken
impl Sync for DestructiveToken
impl Unpin for DestructiveToken
impl UnsafeUnpin for DestructiveToken
impl UnwindSafe for DestructiveToken
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.