use crate::path::Path;
use crate::spi::ResolvedCopyOptions;
pub struct CopyRequest<'a> {
source: &'a Path,
target: &'a Path,
options: ResolvedCopyOptions,
}
impl<'a> CopyRequest<'a> {
#[allow(dead_code)]
#[inline]
pub(crate) const fn new(source: &'a Path, target: &'a Path, options: ResolvedCopyOptions) -> Self {
Self {
source,
target,
options,
}
}
#[inline]
#[must_use]
pub const fn source(&self) -> &'a Path {
self.source
}
#[inline]
#[must_use]
pub const fn target(&self) -> &'a Path {
self.target
}
#[inline]
#[must_use]
pub const fn options(&self) -> &ResolvedCopyOptions {
&self.options
}
}