Struct btlib::BlockMetaSecrets
source · pub struct BlockMetaSecrets {
pub block_id: BlockId,
pub mode: u32,
pub uid: u32,
pub gid: u32,
pub atime: Epoch,
pub mtime: Epoch,
pub ctime: Epoch,
pub size: u64,
pub nlink: u32,
pub sect_sz: u64,
pub tags: BTreeMap<String, Vec<u8>>,
}
Expand description
Metadata that is encrypted.
Fields§
§block_id: BlockId
The identifier for the block these secrets are for.
mode: u32
Mode of file.
uid: u32
Owner UID of file.
gid: u32
Owner GID of file.
atime: Epoch
Last access time.
mtime: Epoch
Last data modification.
ctime: Epoch
Last status change.
size: u64
Size of the file in bytes.
nlink: u32
Number of hard links to the file.
sect_sz: u64
The sector size used by the block.
User controlled metadata.
Implementations§
Trait Implementations§
source§impl AsRef<BlockId> for BlockMetaSecrets
impl AsRef<BlockId> for BlockMetaSecrets
source§impl Clone for BlockMetaSecrets
impl Clone for BlockMetaSecrets
source§fn clone(&self) -> BlockMetaSecrets
fn clone(&self) -> BlockMetaSecrets
Returns a copy of the value. Read more
1.0.0 · 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 BlockMetaSecrets
impl Debug for BlockMetaSecrets
source§impl Default for BlockMetaSecrets
impl Default for BlockMetaSecrets
source§impl<'de> Deserialize<'de> for BlockMetaSecrets
impl<'de> Deserialize<'de> for BlockMetaSecrets
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 BlockMetaSecrets
impl Hash for BlockMetaSecrets
source§impl PartialEq<BlockMetaSecrets> for BlockMetaSecrets
impl PartialEq<BlockMetaSecrets> for BlockMetaSecrets
source§fn eq(&self, other: &BlockMetaSecrets) -> bool
fn eq(&self, other: &BlockMetaSecrets) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for BlockMetaSecrets
impl Serialize for BlockMetaSecrets
source§impl TryFrom<&BlockMetaSecrets> for Attr
impl TryFrom<&BlockMetaSecrets> for Attr
impl Eq for BlockMetaSecrets
impl StructuralEq for BlockMetaSecrets
impl StructuralPartialEq for BlockMetaSecrets
Auto Trait Implementations§
impl RefUnwindSafe for BlockMetaSecrets
impl Send for BlockMetaSecrets
impl Sync for BlockMetaSecrets
impl Unpin for BlockMetaSecrets
impl UnwindSafe for BlockMetaSecrets
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