Struct rs3cache_backend::meta::Metadata
source · pub struct Metadata {
pub index_id: u32,
pub archive_id: u32,
pub name: Option<i32>,
pub crc: i32,
pub version: i32,
pub unknown: Option<i32>,
pub compressed_size: Option<u32>,
pub size: Option<u32>,
pub digest: Option<Bytes>,
pub child_count: u32,
pub child_indices: Vec<u32>,
}
Expand description
Metadata about Archive
s.
Fields§
§index_id: u32
§archive_id: u32
§name: Option<i32>
§crc: i32
§version: i32
§unknown: Option<i32>
§compressed_size: Option<u32>
§size: Option<u32>
§digest: Option<Bytes>
§child_count: u32
§child_indices: Vec<u32>
Implementations§
source§impl Metadata
impl Metadata
sourcepub const fn archive_id(&self) -> u32
pub const fn archive_id(&self) -> u32
The archive_id of the Archive
.
sourcepub const fn version(&self) -> i32
pub const fn version(&self) -> i32
Usually, the amount of seconds between Unix Epoch
and when the Archive
was compiled,
but it can also be a version counter.
pub const fn unknown(&self) -> Option<i32>
sourcepub const fn compressed_size(&self) -> Option<u32>
pub const fn compressed_size(&self) -> Option<u32>
Size of the Archive
.
sourcepub fn digest(&self) -> Option<&[u8]>
pub fn digest(&self) -> Option<&[u8]>
See whirlpool digest.
sourcepub const fn child_count(&self) -> u32
pub const fn child_count(&self) -> u32
The count of files in self
.
sourcepub fn child_indices(&self) -> &[u32]
pub fn child_indices(&self) -> &[u32]
Enumerated file ids of files in the Archive
.
Trait Implementations§
source§impl Ord for Metadata
impl Ord for Metadata
source§impl PartialEq<Metadata> for Metadata
impl PartialEq<Metadata> for Metadata
source§impl PartialOrd<Metadata> for Metadata
impl PartialOrd<Metadata> for Metadata
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl PyClassImpl for Metadata
impl PyClassImpl for Metadata
source§const IS_BASETYPE: bool = false
const IS_BASETYPE: bool = false
#[pyclass(subclass)]
source§const IS_SUBCLASS: bool = false
const IS_SUBCLASS: bool = false
#[pyclass(extends=…)]
source§const IS_MAPPING: bool = false
const IS_MAPPING: bool = false
#[pyclass(mapping)]
source§const IS_SEQUENCE: bool = false
const IS_SEQUENCE: bool = false
#[pyclass(sequence)]
§type ThreadChecker = ThreadCheckerStub<Metadata>
type ThreadChecker = ThreadCheckerStub<Metadata>
This handles following two situations: Read more
§type PyClassMutability = <<PyAny as PyClassBaseType>::PyClassMutability as PyClassMutability>::ImmutableChild
type PyClassMutability = <<PyAny as PyClassBaseType>::PyClassMutability as PyClassMutability>::ImmutableChild
Immutable or mutable
§type BaseNativeType = PyAny
type BaseNativeType = PyAny
The closest native ancestor. This is
PyAny
by default, and when you declare
#[pyclass(extends=PyDict)]
, it’s PyDict
.fn items_iter() -> PyClassItemsIter
fn dict_offset() -> Option<isize>
fn weaklist_offset() -> Option<isize>
source§impl PyMethods<Metadata> for PyClassImplCollector<Metadata>
impl PyMethods<Metadata> for PyClassImplCollector<Metadata>
fn py_methods(self) -> &'static PyClassItems
source§impl PyTypeInfo for Metadata
impl PyTypeInfo for Metadata
§type AsRefTarget = PyCell<Metadata>
type AsRefTarget = PyCell<Metadata>
Utility type to make Py::as_ref work.
source§fn type_object_raw(py: Python<'_>) -> *mut PyTypeObject
fn type_object_raw(py: Python<'_>) -> *mut PyTypeObject
Returns the PyTypeObject instance for this type.
§fn type_object(py: Python<'_>) -> &PyType
fn type_object(py: Python<'_>) -> &PyType
Returns the safe abstraction over the type object.
§fn is_type_of(object: &PyAny) -> bool
fn is_type_of(object: &PyAny) -> bool
Checks if
object
is an instance of this type or a subclass of this type.§fn is_exact_type_of(object: &PyAny) -> bool
fn is_exact_type_of(object: &PyAny) -> bool
Checks if
object
is an instance of this type.