Struct EulaEntry

Source
#[repr(C, packed(1))]
pub struct EulaEntry {
Show 16 fields pub countryCode: [c_char; 3], pub pad: u8_, pub languageCode: [c_char; 3], pub pad2: u8_, pub eulaVersion: u16_, pub pad3: [u8_; 2], pub nextEntryOffset: u32_, pub eulaTypeOffset: u32_, pub agreeTextOffset: u32_, pub nonAgreeTextOffset: u32_, pub languageNameOffset: u32_, pub mainTitleOffset: u32_, pub mainTextOffset: u32_, pub subTitleOffset: u32_, pub subTextOffset: u32_, pub textData: __IncompleteArrayField<c_char>,
}
Expand description

EULA entry header structure

Fields§

§countryCode: [c_char; 3]

< ISO 3166-1 A-2 country code

§pad: u8_§languageCode: [c_char; 3]

< ISO 639 Set 1 language code

§pad2: u8_§eulaVersion: u16_§pad3: [u8_; 2]§nextEntryOffset: u32_

< Offset of next EULA entry, relative to full data blob.

§eulaTypeOffset: u32_

< Offset of the EulaType within textData.

§agreeTextOffset: u32_

< Offset of the AgreeText within textData.

§nonAgreeTextOffset: u32_

< Offset of the NonAgreeText within textData.

§languageNameOffset: u32_

< Offset of the LanguageName within textData.

§mainTitleOffset: u32_

< Offset of the MainTitle within textData.

§mainTextOffset: u32_

< Offset of the MainText within textData.

§subTitleOffset: u32_

< Offset of the SubTitle within textData.

§subTextOffset: u32_

< Offset of the SubText within textData.

§textData: __IncompleteArrayField<c_char>

Trait Implementations§

Source§

impl Default for EulaEntry

Source§

fn default() -> Self

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

Auto Trait Implementations§

§

impl Freeze for EulaEntry

§

impl RefUnwindSafe for EulaEntry

§

impl Send for EulaEntry

§

impl Sync for EulaEntry

§

impl Unpin for EulaEntry

§

impl UnwindSafe for EulaEntry

Blanket Implementations§

§

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

§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

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

§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
§

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

§

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

Mutably borrows from an owned value. Read more
§

impl<T> From<T> for T

§

fn from(t: T) -> T

Returns the argument unchanged.

§

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

§

fn into(self) -> U

Calls U::from(self).

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

§

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

§

type Error = Infallible

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

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

Performs the conversion.
§

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

§

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

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

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

Performs the conversion.