-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
46 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
use crate::unix_timestamp::UnixTimestamp; | ||
|
||
use super::{bucket_compression::BucketCompression, bucket_guid::BucketGuid, bucket_path::BucketRelativePath}; | ||
|
||
|
||
pub struct BucketMetadata { | ||
pub guid: BucketGuid, | ||
pub updated_at: UnixTimestamp, | ||
pub created_at: UnixTimestamp, | ||
pub capacity: u64, | ||
pub size: u64, | ||
} | ||
|
||
pub struct BucketObjectMetadata { | ||
pub updated_at: UnixTimestamp, | ||
pub created_at: UnixTimestamp, | ||
pub size: u64, | ||
pub encoding: ObjectEncoding, | ||
pub path: BucketRelativePath, | ||
pub hashes: ObjectHashes, | ||
} | ||
|
||
|
||
pub struct VirtualZipMetadate { | ||
pub compression_level: u8, | ||
pub compressed_parts: Vec<BucketRelativePath>, | ||
pub compression_algorithm: BucketCompression, | ||
} | ||
|
||
|
||
|
||
|
||
|
||
pub struct ObjectEncoding { | ||
} | ||
|
||
|
||
pub struct ObjectHashes { | ||
sha_256: Option<String>, | ||
sha_512: Option<String>, | ||
crc_32: Option<u32>, | ||
crc_64: Option<u64>, | ||
blake3: Option<String>, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters