pub struct ReadOptions { /* private fields */ }Expand description
Options for reading an entry.
Implementations§
Source§impl ReadOptions
impl ReadOptions
Sourcepub fn with_password<T: Into<String>>(password: Option<T>) -> Self
pub fn with_password<T: Into<String>>(password: Option<T>) -> Self
Create a new ReadOptions with optional password.
§Examples
use libpna::ReadOptions;
let read_option = ReadOptions::with_password(Some("password"));Sourcepub const fn builder() -> ReadOptionsBuilder
pub const fn builder() -> ReadOptionsBuilder
Returns a builder for ReadOptions.
§Returns
ReadOptionsBuilder: Builder object for ReadOptions.
§Examples
use libpna::ReadOptions;
let builder = ReadOptions::builder();Sourcepub fn into_builder(self) -> ReadOptionsBuilder
pub fn into_builder(self) -> ReadOptionsBuilder
Converts ReadOptions into a ReadOptionsBuilder.
§Returns
ReadOptionsBuilder: Builder object for ReadOptions.
§Examples
use libpna::ReadOptions;
let read_option = ReadOptions::builder().build();
let builder = read_option.into_builder();Trait Implementations§
Source§impl Clone for ReadOptions
impl Clone for ReadOptions
Source§fn clone(&self) -> ReadOptions
fn clone(&self) -> ReadOptions
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 ReadOptions
impl Debug for ReadOptions
Source§impl From<ReadOptions> for ReadOptionsBuilder
impl From<ReadOptions> for ReadOptionsBuilder
Source§fn from(value: ReadOptions) -> Self
fn from(value: ReadOptions) -> Self
Converts to this type from the input type.
Source§impl Hash for ReadOptions
impl Hash for ReadOptions
Source§impl Ord for ReadOptions
impl Ord for ReadOptions
Source§fn cmp(&self, other: &ReadOptions) -> Ordering
fn cmp(&self, other: &ReadOptions) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for ReadOptions
impl PartialEq for ReadOptions
Source§impl PartialOrd for ReadOptions
impl PartialOrd for ReadOptions
impl Eq for ReadOptions
impl StructuralPartialEq for ReadOptions
Auto Trait Implementations§
impl Freeze for ReadOptions
impl RefUnwindSafe for ReadOptions
impl Send for ReadOptions
impl Sync for ReadOptions
impl Unpin for ReadOptions
impl UnwindSafe for ReadOptions
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