pub struct LayerUpload {
pub upload_id: String,
pub repository_name: String,
pub created_at: DateTime<Utc>,
pub spool_path: String,
pub last_byte_received: u64,
}Fields§
§upload_id: String§repository_name: String§created_at: DateTime<Utc>§spool_path: StringFilesystem path to the in-progress upload’s spool file. Each
UploadLayerPart (JSON control plane) and OCI blob PATCH
appends raw bytes to this file; the OCI PUT finish step
streams the final chunk in, computes SHA-256 over the file in
constant memory, and then promotes the bytes into a Layer.
Storing the path means a 1 GiB push never holds the partial
upload in RAM.
last_byte_received: u64Trait Implementations§
Source§impl Clone for LayerUpload
impl Clone for LayerUpload
Source§fn clone(&self) -> LayerUpload
fn clone(&self) -> LayerUpload
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 LayerUpload
impl Debug for LayerUpload
Source§impl<'de> Deserialize<'de> for LayerUpload
impl<'de> Deserialize<'de> for LayerUpload
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 LayerUpload
impl RefUnwindSafe for LayerUpload
impl Send for LayerUpload
impl Sync for LayerUpload
impl Unpin for LayerUpload
impl UnsafeUnpin for LayerUpload
impl UnwindSafe for LayerUpload
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