Skip to main content

ObjectMeta

Struct ObjectMeta 

Source
pub struct ObjectMeta {
    pub etag: String,
    pub size: u64,
    pub crc64_b64: Option<String>,
    pub meta: HashMap<String, String>,
    pub last_modified_unix: Option<u64>,
    pub storage_class: Option<String>,
    pub version_id: Option<String>,
}
Expand description

What HEAD/GET/publish return about an object.

Fields§

§etag: String§size: u64§crc64_b64: Option<String>

Full-object CRC-64/NVME in wire (base64) form, when the store has one (objects written by this tier always do).

§meta: HashMap<String, String>

User metadata with backend prefixes stripped (bare keys, e.g. flint-gen).

§last_modified_unix: Option<u64>§storage_class: Option<String>

Backend storage class (S3: None ≡ STANDARD). The A11 IA copy-source guard reads this: a non-Standard base pays retrieval on every CLEAN byte copied, silently inverting the tier’s saving — the flusher refuses BaseCopy from it.

§version_id: Option<String>

The object VERSION this metadata describes, on a versioned bucket (boundary-verbs plan D7). S3 already returns x-amz-version-id on PUT and this crate used to discard it; gated citation needs it and therefore costs no extra request.

None means the backend returned no version id — an unversioned bucket, or a proxy that STRIPS the header. The second case is why gated mode probes for it and REFUSES rather than degrading: falling back to etag semantics on a key whose current version is uncited is precisely the torn view the mode exists to prevent.

Implementations§

Source§

impl ObjectMeta

Source

pub fn copy_source_allowed(&self) -> bool

May this object serve as a server-side copy source without per-byte retrieval charges? (A11’s IA copy-source guard.)

Trait Implementations§

Source§

impl Clone for ObjectMeta

Source§

fn clone(&self) -> ObjectMeta

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for ObjectMeta

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Eq for ObjectMeta

Source§

impl PartialEq for ObjectMeta

Source§

fn eq(&self, other: &ObjectMeta) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl StructuralPartialEq for ObjectMeta

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.