pub struct HomeSymlinkView {
pub enabled: bool,
pub root: PathBuf,
}Expand description
Optional human-facing directory whose entries link to canonical storage.
This view never becomes the source of truth and is disabled by default.
§Examples
use ailloli_ui_app_storage::HomeSymlinkView;
let view = HomeSymlinkView { enabled: false, root: "/tmp/.example".into() };
assert!(!view.enabled);Fields§
§enabled: boolWhether AppStorage::ensure_home_symlink_view may create the view.
root: PathBufDirectory containing the config, state, data, and cache links.
Trait Implementations§
Source§impl Clone for HomeSymlinkView
impl Clone for HomeSymlinkView
Source§fn clone(&self) -> HomeSymlinkView
fn clone(&self) -> HomeSymlinkView
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 HomeSymlinkView
impl Debug for HomeSymlinkView
Source§impl PartialEq for HomeSymlinkView
impl PartialEq for HomeSymlinkView
impl Eq for HomeSymlinkView
impl StructuralPartialEq for HomeSymlinkView
Auto Trait Implementations§
impl Freeze for HomeSymlinkView
impl RefUnwindSafe for HomeSymlinkView
impl Send for HomeSymlinkView
impl Sync for HomeSymlinkView
impl Unpin for HomeSymlinkView
impl UnwindSafe for HomeSymlinkView
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