Skip to main content

SaveSummary

Struct SaveSummary 

Source
pub struct SaveSummary {
    pub version: Option<u32>,
    pub format: Option<FormatId>,
    pub edition: Option<GameEdition>,
    pub expansion_type: Option<ExpansionType>,
    pub name: Option<String>,
    pub class: Option<Class>,
    pub level: Option<u8>,
    pub title: Option<String>,
    pub issues: Vec<ParseIssue>,
}
Expand description

Lightweight metadata summary extracted from header + character section only.

Fields§

§version: Option<u32>

Numeric version stored in the file header when readable.

§format: Option<FormatId>

Detected format id (FormatId) from the header version when readable.

§edition: Option<GameEdition>

Edition family inferred from known format ids.

§expansion_type: Option<ExpansionType>

Character expansion mode inferred using format-specific rules.

§name: Option<String>

Character name from the character section.

§class: Option<Class>

Character class from the character section.

§level: Option<u8>

Character level from the character section.

§title: Option<String>

Character title derived from progression/class/expansion/hardcore using default D2R rules.

§issues: Vec<ParseIssue>

Non-fatal issues collected during summarize in lax mode.

Trait Implementations§

Source§

impl Clone for SaveSummary

Source§

fn clone(&self) -> SaveSummary

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for SaveSummary

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for SaveSummary

Source§

fn default() -> SaveSummary

Returns the “default value” for a type. Read more
Source§

impl<'de> Deserialize<'de> for SaveSummary

Source§

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 Serialize for SaveSummary

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,