pub struct UploadSessionResponse {
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 UploadSessionResponse
impl UploadSessionResponse
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 UploadSessionResponse
impl Clone for UploadSessionResponse
Source§fn clone(&self) -> UploadSessionResponse
fn clone(&self) -> UploadSessionResponse
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 UploadSessionResponse
impl Debug for UploadSessionResponse
Source§impl<'de> Deserialize<'de> for UploadSessionResponse
impl<'de> Deserialize<'de> for UploadSessionResponse
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 UploadSessionResponse
Source§impl PartialEq for UploadSessionResponse
impl PartialEq for UploadSessionResponse
Source§impl Serialize for UploadSessionResponse
impl Serialize for UploadSessionResponse
impl StructuralPartialEq for UploadSessionResponse
Auto Trait Implementations§
impl Freeze for UploadSessionResponse
impl RefUnwindSafe for UploadSessionResponse
impl Send for UploadSessionResponse
impl Sync for UploadSessionResponse
impl Unpin for UploadSessionResponse
impl UnsafeUnpin for UploadSessionResponse
impl UnwindSafe for UploadSessionResponse
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