pub struct ZfsSnapshotRequest { /* private fields */ }Expand description
Request for a bounded ZFS snapshot listing.
Implementations§
Source§impl ZfsSnapshotRequest
impl ZfsSnapshotRequest
Sourcepub const fn new(deadline: Timestamp) -> Self
pub const fn new(deadline: Timestamp) -> Self
Creates an unfiltered request limited to 500 rows.
Sourcepub fn with_pool(self, pool: impl Into<String>) -> InfraResult<Self>
pub fn with_pool(self, pool: impl Into<String>) -> InfraResult<Self>
Sets a pool fallback target.
Sourcepub fn with_dataset(self, dataset: impl Into<String>) -> InfraResult<Self>
pub fn with_dataset(self, dataset: impl Into<String>) -> InfraResult<Self>
Sets a dataset target, which takes precedence over the pool.
Sourcepub fn with_limit(self, limit: u32) -> InfraResult<Self>
pub fn with_limit(self, limit: u32) -> InfraResult<Self>
Sets the maximum returned rows.
Trait Implementations§
Source§impl Clone for ZfsSnapshotRequest
impl Clone for ZfsSnapshotRequest
Source§fn clone(&self) -> ZfsSnapshotRequest
fn clone(&self) -> ZfsSnapshotRequest
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 ZfsSnapshotRequest
impl Debug for ZfsSnapshotRequest
Source§impl<'de> Deserialize<'de> for ZfsSnapshotRequest
impl<'de> Deserialize<'de> for ZfsSnapshotRequest
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
Source§impl PartialEq for ZfsSnapshotRequest
impl PartialEq for ZfsSnapshotRequest
Source§fn eq(&self, other: &ZfsSnapshotRequest) -> bool
fn eq(&self, other: &ZfsSnapshotRequest) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for ZfsSnapshotRequest
impl Serialize for ZfsSnapshotRequest
impl Eq for ZfsSnapshotRequest
impl StructuralPartialEq for ZfsSnapshotRequest
Auto Trait Implementations§
impl Freeze for ZfsSnapshotRequest
impl RefUnwindSafe for ZfsSnapshotRequest
impl Send for ZfsSnapshotRequest
impl Sync for ZfsSnapshotRequest
impl Unpin for ZfsSnapshotRequest
impl UnsafeUnpin for ZfsSnapshotRequest
impl UnwindSafe for ZfsSnapshotRequest
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.