pub struct PoolTarget {
pub pool: String,
pub by_id: bool,
}Expand description
Request targeting a storage pool by command line or numeric ID.
Fields§
§pool: StringPool command line, or zero-based pool ID when by_id is true.
by_id: boolInterpret pool as a zero-based pool ID.
Trait Implementations§
Source§impl Clone for PoolTarget
impl Clone for PoolTarget
Source§fn clone(&self) -> PoolTarget
fn clone(&self) -> PoolTarget
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 PoolTarget
impl Debug for PoolTarget
Source§impl Default for PoolTarget
impl Default for PoolTarget
Source§fn default() -> PoolTarget
fn default() -> PoolTarget
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for PoolTarget
impl<'de> Deserialize<'de> for PoolTarget
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
Auto Trait Implementations§
impl Freeze for PoolTarget
impl RefUnwindSafe for PoolTarget
impl Send for PoolTarget
impl Sync for PoolTarget
impl Unpin for PoolTarget
impl UnsafeUnpin for PoolTarget
impl UnwindSafe for PoolTarget
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