pub struct SessionSummary {
pub id: SessionSummaryId,
pub asset_id: SessionSummaryAssetId,
pub album_id: Nullable<SessionSummaryAlbumId>,
pub blob_role: SessionSummaryBlobRole,
pub status: SessionSummaryStatus,
pub received_bytes: SessionSummaryReceivedBytes,
pub total_size: SessionSummaryTotalSize,
pub created_at: SessionSummaryCreatedAt,
pub last_progress_at: SessionSummaryLastProgressAt,
pub error_code: Nullable<SessionSummaryErrorCode>,
}Expand description
One in-flight upload, as the resumption listing serves it.
Deliberately not the whole UploadSessionRecord. The manifest envelope, the expected hash
and the crypto pin are finalization’s inputs and are already the client’s own — echoing them
to every listing would put a signed document in a response nobody reads it from.
Fields§
§id: SessionSummaryId§asset_id: SessionSummaryAssetId§album_id: Nullable<SessionSummaryAlbumId>§blob_role: SessionSummaryBlobRole§status: SessionSummaryStatus§received_bytes: SessionSummaryReceivedBytes§total_size: SessionSummaryTotalSize§created_at: SessionSummaryCreatedAt§last_progress_at: SessionSummaryLastProgressAt§error_code: Nullable<SessionSummaryErrorCode>Implementations§
Source§impl SessionSummary
impl SessionSummary
Sourcepub fn with_album_id(
self,
value: impl Into<Nullable<SessionSummaryAlbumId>>,
) -> Self
pub fn with_album_id( self, value: impl Into<Nullable<SessionSummaryAlbumId>>, ) -> Self
Set the album_id member: a value, or Nullable::Null for an explicit null.
Sourcepub fn with_album_id_null(self) -> Self
pub fn with_album_id_null(self) -> Self
Set the album_id member to an explicit null.
Sourcepub fn with_error_code(
self,
value: impl Into<Nullable<SessionSummaryErrorCode>>,
) -> Self
pub fn with_error_code( self, value: impl Into<Nullable<SessionSummaryErrorCode>>, ) -> Self
Set the error_code member: a value, or Nullable::Null for an explicit null.
Sourcepub fn with_error_code_null(self) -> Self
pub fn with_error_code_null(self) -> Self
Set the error_code member to an explicit null.
Trait Implementations§
Source§impl Clone for SessionSummary
impl Clone for SessionSummary
Source§fn clone(&self) -> SessionSummary
fn clone(&self) -> SessionSummary
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 SessionSummary
impl Debug for SessionSummary
Source§impl<'de> Deserialize<'de> for SessionSummary
impl<'de> Deserialize<'de> for SessionSummary
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
Source§impl From<SessionSummaryRequired> for SessionSummary
impl From<SessionSummaryRequired> for SessionSummary
Source§fn from(required: SessionSummaryRequired) -> Self
fn from(required: SessionSummaryRequired) -> Self
A SessionSummary holding the members SessionSummaryRequired holds, and every optional member unset, a member with a schema default included.
Source§impl PartialEq for SessionSummary
impl PartialEq for SessionSummary
Source§fn eq(&self, other: &SessionSummary) -> bool
fn eq(&self, other: &SessionSummary) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for SessionSummary
impl Serialize for SessionSummary
impl StructuralPartialEq for SessionSummary
Auto Trait Implementations§
impl Freeze for SessionSummary
impl RefUnwindSafe for SessionSummary
impl Send for SessionSummary
impl Sync for SessionSummary
impl Unpin for SessionSummary
impl UnsafeUnpin for SessionSummary
impl UnwindSafe for SessionSummary
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> CompatExt for T
impl<T> CompatExt for T
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
§impl<T, UT> HandleAlloc<UT> for T
impl<T, UT> HandleAlloc<UT> for T
§fn new_handle(value: Arc<T>) -> Handle
fn new_handle(value: Arc<T>) -> Handle
Create a new handle for an Arc value Read more
§unsafe fn clone_handle(handle: Handle) -> Handle
unsafe fn clone_handle(handle: Handle) -> Handle
Clone a handle Read more
§unsafe fn consume_handle(handle: Handle) -> Arc<T> ⓘ
unsafe fn consume_handle(handle: Handle) -> Arc<T> ⓘ
Consume a handle, getting back the initial
Arc<> Read more§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more