pub struct MetaObject {Show 18 fields
pub version_id: Option<Uuid>,
pub data_dir: Option<Uuid>,
pub erasure_algorithm: ErasureAlgo,
pub erasure_m: usize,
pub erasure_n: usize,
pub erasure_block_size: usize,
pub erasure_index: usize,
pub erasure_dist: Vec<u8>,
pub bitrot_checksum_algo: ChecksumAlgo,
pub part_numbers: Vec<usize>,
pub part_etags: Vec<String>,
pub part_sizes: Vec<usize>,
pub part_actual_sizes: Vec<i64>,
pub part_indices: Vec<Bytes>,
pub size: i64,
pub mod_time: Option<OffsetDateTime>,
pub meta_sys: HashMap<String, Vec<u8>>,
pub meta_user: HashMap<String, String>,
}
Fields§
§version_id: Option<Uuid>
§data_dir: Option<Uuid>
§erasure_algorithm: ErasureAlgo
§erasure_m: usize
§erasure_n: usize
§erasure_block_size: usize
§erasure_index: usize
§erasure_dist: Vec<u8>
§bitrot_checksum_algo: ChecksumAlgo
§part_numbers: Vec<usize>
§part_sizes: Vec<usize>
§part_actual_sizes: Vec<i64>
§part_indices: Vec<Bytes>
§size: i64
§mod_time: Option<OffsetDateTime>
§meta_sys: HashMap<String, Vec<u8>>
§meta_user: HashMap<String, String>
Implementations§
Source§impl MetaObject
impl MetaObject
pub fn unmarshal_msg(&mut self, buf: &[u8]) -> Result<u64>
pub fn marshal_msg(&self) -> Result<Vec<u8>>
pub fn into_fileinfo( &self, volume: &str, path: &str, all_parts: bool, ) -> FileInfo
pub fn set_transition(&mut self, fi: &FileInfo)
pub fn remove_restore_hdrs(&mut self)
pub fn uses_data_dir(&self) -> bool
pub fn inlinedata(&self) -> bool
pub fn reset_inline_data(&mut self)
Sourcepub fn remove_restore_headers(&mut self)
pub fn remove_restore_headers(&mut self)
Remove restore headers
Sourcepub fn get_signature(&self) -> [u8; 4]
pub fn get_signature(&self) -> [u8; 4]
Get object signature
pub fn init_free_version(&self, fi: &FileInfo) -> (FileMetaVersion, bool)
Trait Implementations§
Source§impl Clone for MetaObject
impl Clone for MetaObject
Source§fn clone(&self) -> MetaObject
fn clone(&self) -> MetaObject
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for MetaObject
impl Debug for MetaObject
Source§impl Default for MetaObject
impl Default for MetaObject
Source§fn default() -> MetaObject
fn default() -> MetaObject
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for MetaObject
impl<'de> Deserialize<'de> for MetaObject
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 From<FileInfo> for MetaObject
impl From<FileInfo> for MetaObject
Source§impl PartialEq for MetaObject
impl PartialEq for MetaObject
Source§impl Serialize for MetaObject
impl Serialize for MetaObject
impl StructuralPartialEq for MetaObject
Auto Trait Implementations§
impl Freeze for MetaObject
impl RefUnwindSafe for MetaObject
impl Send for MetaObject
impl Sync for MetaObject
impl Unpin for MetaObject
impl UnwindSafe for MetaObject
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