pub struct UploadSession {
pub namespace_id: NamespaceId,
pub upload_id: UploadId,
pub mode: UploadMode,
pub status: UploadSessionStatus,
}Expand description
Current view of one upload session.
Fields§
§namespace_id: NamespaceIdNamespace that owns the session.
upload_id: UploadIdSession represented by this view.
mode: UploadModeTransport selected when the session began.
status: UploadSessionStatusThe session’s lifecycle and state-specific fields. Completed HTTP responses carry a fresh receipt while the minting window remains open.
Implementations§
Source§impl UploadSession
impl UploadSession
Sourcepub const fn content_ref(&self) -> Option<&ContentRef>
pub const fn content_ref(&self) -> Option<&ContentRef>
Returns the completed content reference, or None before completion.
Sourcepub const fn content_token(&self) -> Option<&ContentToken>
pub const fn content_token(&self) -> Option<&ContentToken>
Returns the completed session’s current content token, when present.
Trait Implementations§
Source§impl Clone for UploadSession
impl Clone for UploadSession
Source§fn clone(&self) -> UploadSession
fn clone(&self) -> UploadSession
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 UploadSession
impl Debug for UploadSession
Source§impl<'de> Deserialize<'de> for UploadSession
impl<'de> Deserialize<'de> for UploadSession
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
impl Eq for UploadSession
Source§impl PartialEq for UploadSession
impl PartialEq for UploadSession
Source§impl Serialize for UploadSession
impl Serialize for UploadSession
impl StructuralPartialEq for UploadSession
Auto Trait Implementations§
impl Freeze for UploadSession
impl RefUnwindSafe for UploadSession
impl Send for UploadSession
impl Sync for UploadSession
impl Unpin for UploadSession
impl UnsafeUnpin for UploadSession
impl UnwindSafe for UploadSession
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