#[non_exhaustive]pub struct Approval {
pub install: Vec<PathBuf>,
pub overwrite: Vec<PathBuf>,
}Expand description
What the user agreed to.
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.install: Vec<PathBuf>Places to install into.
overwrite: Vec<PathBuf>Places whose modified copy is to be replaced anyway.
Implementations§
Source§impl Approval
impl Approval
Sourcepub fn install(places: impl IntoIterator<Item = PathBuf>) -> Self
pub fn install(places: impl IntoIterator<Item = PathBuf>) -> Self
Agreement to install into these places.
Sourcepub fn with_overwrite(self, places: impl IntoIterator<Item = PathBuf>) -> Self
pub fn with_overwrite(self, places: impl IntoIterator<Item = PathBuf>) -> Self
The same approval, also replacing the modified copies in these places.
Trait Implementations§
impl Eq for Approval
impl StructuralPartialEq for Approval
Auto Trait Implementations§
impl Freeze for Approval
impl RefUnwindSafe for Approval
impl Send for Approval
impl Sync for Approval
impl Unpin for Approval
impl UnsafeUnpin for Approval
impl UnwindSafe for Approval
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