pub struct DiffChecksumsResponse {
pub checksums_location: Option<CompositeMedia>,
pub chunk_size_bytes: Option<i64>,
pub object_location: Option<CompositeMedia>,
pub object_size_bytes: Option<i64>,
pub object_version: Option<String>,
}
Expand description
Backend response for a Diff get checksums response. For details on the Scotty Diff protocol, visit http://go/scotty-diff-protocol.
This type is not used in any activity, and only used as part of another schema.
Fields§
§checksums_location: Option<CompositeMedia>
Exactly one of these fields must be populated. If checksums_location is filled, the server will return the corresponding contents to the user. If object_location is filled, the server will calculate the checksums based on the content there and return that to the user. For details on the format of the checksums, see http://go/scotty-diff-protocol.
chunk_size_bytes: Option<i64>
The chunk size of checksums. Must be a multiple of 256KB.
object_location: Option<CompositeMedia>
If set, calculate the checksums based on the contents and return them to the caller.
object_size_bytes: Option<i64>
The total size of the server object.
object_version: Option<String>
The object version of the object the checksums are being returned for.
Trait Implementations§
Source§impl Clone for DiffChecksumsResponse
impl Clone for DiffChecksumsResponse
Source§fn clone(&self) -> DiffChecksumsResponse
fn clone(&self) -> DiffChecksumsResponse
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for DiffChecksumsResponse
impl Debug for DiffChecksumsResponse
Source§impl Default for DiffChecksumsResponse
impl Default for DiffChecksumsResponse
Source§fn default() -> DiffChecksumsResponse
fn default() -> DiffChecksumsResponse
Source§impl<'de> Deserialize<'de> for DiffChecksumsResponse
impl<'de> Deserialize<'de> for DiffChecksumsResponse
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>,
Source§impl Serialize for DiffChecksumsResponse
impl Serialize for DiffChecksumsResponse
impl Part for DiffChecksumsResponse
Auto Trait Implementations§
impl Freeze for DiffChecksumsResponse
impl RefUnwindSafe for DiffChecksumsResponse
impl Send for DiffChecksumsResponse
impl Sync for DiffChecksumsResponse
impl Unpin for DiffChecksumsResponse
impl UnwindSafe for DiffChecksumsResponse
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§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>
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>
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