pub struct Layer {
pub digest: String,
pub size: u64,
pub blob_b64: String,
pub media_type: String,
pub encrypted_with_kms_key: Option<String>,
}Fields§
§digest: String§size: u64§blob_b64: StringBase64-encoded blob bytes. When the owning repository has
EncryptionConfiguration.encryption_type == "KMS", these bytes
are the envelope produced by fakecloud_kms::api::encrypt_blob;
blob_get decrypts on the way out. For AES256 (fakecloud’s
default) the bytes are the plaintext blob.
media_type: String§encrypted_with_kms_key: Option<String>ARN of the KMS key the blob was encrypted under, when stored
encrypted. None means the bytes in blob_b64 are plaintext
— either because the repo used the default AES256 encryption
(fakecloud-internal, no-op) or the layer pre-dates the KMS
wire-up.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Layer
impl<'de> Deserialize<'de> for Layer
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
Auto Trait Implementations§
impl Freeze for Layer
impl RefUnwindSafe for Layer
impl Send for Layer
impl Sync for Layer
impl Unpin for Layer
impl UnsafeUnpin for Layer
impl UnwindSafe for Layer
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