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 lifecycle and its state-specific fields.
Implementations§
Source§impl UploadSession
impl UploadSession
Sourcepub const fn content_ref(&self) -> Option<&ContentRef>
pub const fn content_ref(&self) -> Option<&ContentRef>
Returns the staged or completed content reference, when present.
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§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