Struct libzetta::zfs::properties::BookmarkPropertiesBuilder
source · pub struct BookmarkPropertiesBuilder { /* private fields */ }
Expand description
Builder for BookmarkProperties
.
Implementations§
source§impl BookmarkPropertiesBuilder
impl BookmarkPropertiesBuilder
pub fn name(&mut self, value: PathBuf) -> &mut Self
sourcepub fn create_txg(&mut self, value: Option<u64>) -> &mut Self
pub fn create_txg(&mut self, value: Option<u64>) -> &mut Self
The birth time transaction group (TXG) of the object.
sourcepub fn creation(&mut self, value: i64) -> &mut Self
pub fn creation(&mut self, value: i64) -> &mut Self
Read-only property that identifies the date and time a dataset created.
sourcepub fn unknown_properties(
&mut self,
value: HashMap<String, String>
) -> &mut Self
pub fn unknown_properties( &mut self, value: HashMap<String, String> ) -> &mut Self
User defined properties and properties this library failed to recognize.
sourcepub fn build(
&self
) -> Result<BookmarkProperties, BookmarkPropertiesBuilderError>
pub fn build( &self ) -> Result<BookmarkProperties, BookmarkPropertiesBuilderError>
source§impl BookmarkPropertiesBuilder
impl BookmarkPropertiesBuilder
pub fn insert_unknown_property(&mut self, key: String, value: String)
Trait Implementations§
source§impl Clone for BookmarkPropertiesBuilder
impl Clone for BookmarkPropertiesBuilder
source§fn clone(&self) -> BookmarkPropertiesBuilder
fn clone(&self) -> BookmarkPropertiesBuilder
Returns a copy of the value. Read more
1.0.0 · 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 BookmarkPropertiesBuilder
impl Debug for BookmarkPropertiesBuilder
Auto Trait Implementations§
impl RefUnwindSafe for BookmarkPropertiesBuilder
impl Send for BookmarkPropertiesBuilder
impl Sync for BookmarkPropertiesBuilder
impl Unpin for BookmarkPropertiesBuilder
impl UnwindSafe for BookmarkPropertiesBuilder
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