pub enum TargetPath {
SqpackDat {
main_id: u16,
sub_id: u16,
file_id: u32,
},
SqpackIndex {
main_id: u16,
sub_id: u16,
file_id: u32,
},
Generic(String),
}Expand description
Path identity of a single target file the plan writes to.
Resolution to a concrete std::path::PathBuf lives in the applier; the
plan only carries the symbolic identity so it can be compared, hashed, and
serialised without an ApplyConfig.
Variants§
SqpackDat
SqPack .dat file at (main_id, sub_id, file_id).
Fields
SqpackIndex
SqPack .index file at (main_id, sub_id, file_id).
Fields
Generic(String)
Generic relative path under the game install root (e.g. an SqpkFile
AddFile target outside the sqpack/ subtree).
Trait Implementations§
Source§impl Clone for TargetPath
impl Clone for TargetPath
Source§fn clone(&self) -> TargetPath
fn clone(&self) -> TargetPath
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 TargetPath
impl Debug for TargetPath
Source§impl<'de> Deserialize<'de> for TargetPath
impl<'de> Deserialize<'de> for TargetPath
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Hash for TargetPath
impl Hash for TargetPath
Source§impl PartialEq for TargetPath
impl PartialEq for TargetPath
Source§fn eq(&self, other: &TargetPath) -> bool
fn eq(&self, other: &TargetPath) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for TargetPath
impl Serialize for TargetPath
impl Eq for TargetPath
impl StructuralPartialEq for TargetPath
Auto Trait Implementations§
impl Freeze for TargetPath
impl RefUnwindSafe for TargetPath
impl Send for TargetPath
impl Sync for TargetPath
impl Unpin for TargetPath
impl UnsafeUnpin for TargetPath
impl UnwindSafe for TargetPath
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more