#[non_exhaustive]pub struct ListOptions {
pub stored_targets: StoredTargets,
}Expand description
Options controlling list behavior.
§Examples
use exarch_core::ListOptions;
use exarch_core::StoredTargets;
let options = ListOptions::default();
assert_eq!(options.stored_targets, StoredTargets::Skip);
let options = options.with_stored_targets(StoredTargets::Read);
assert_eq!(options.stored_targets, StoredTargets::Read);Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.stored_targets: StoredTargetsWhether to read the link targets a format keeps in entry data.
Implementations§
Source§impl ListOptions
impl ListOptions
Sourcepub fn with_stored_targets(self, stored_targets: StoredTargets) -> Self
pub fn with_stored_targets(self, stored_targets: StoredTargets) -> Self
Sets whether link targets kept in entry data are read.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ListOptions
impl RefUnwindSafe for ListOptions
impl Send for ListOptions
impl Sync for ListOptions
impl Unpin for ListOptions
impl UnsafeUnpin for ListOptions
impl UnwindSafe for ListOptions
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