pub struct WriteContentResponse {
pub action: i32,
pub started_at: Option<Timestamp>,
pub updated_at: Option<Timestamp>,
pub offset: i64,
pub total: i64,
pub digest: String,
}
Expand description
WriteContentResponse is returned on the culmination of a write call.
Fields§
§action: i32
Action contains the action for the final message of the stream. A writer should confirm that they match the intended result.
started_at: Option<Timestamp>
StartedAt provides the time at which the write began.
This must be set for stat and commit write actions. All other write actions may omit this.
updated_at: Option<Timestamp>
UpdatedAt provides the last time of a successful write.
This must be set for stat and commit write actions. All other write actions may omit this.
offset: i64
Offset is the current committed size for the write.
total: i64
Total provides the current, expected total size of the write.
We include this to provide consistency with the Status structure on the client writer.
This is only valid on the Stat and Commit response.
digest: String
Digest, if present, includes the digest up to the currently committed bytes. If action is commit, this field will be set. It is implementation defined if this is set for other actions.
Implementations§
source§impl WriteContentResponse
impl WriteContentResponse
sourcepub fn action(&self) -> WriteAction
pub fn action(&self) -> WriteAction
Returns the enum value of action
, or the default if the field is set to an invalid enum value.
sourcepub fn set_action(&mut self, value: WriteAction)
pub fn set_action(&mut self, value: WriteAction)
Sets action
to the provided enum value.
Trait Implementations§
source§impl Clone for WriteContentResponse
impl Clone for WriteContentResponse
source§fn clone(&self) -> WriteContentResponse
fn clone(&self) -> WriteContentResponse
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for WriteContentResponse
impl Debug for WriteContentResponse
source§impl Default for WriteContentResponse
impl Default for WriteContentResponse
source§impl Message for WriteContentResponse
impl Message for WriteContentResponse
source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
source§fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
source§fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
. Read moresource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
.source§impl Name for WriteContentResponse
impl Name for WriteContentResponse
source§const NAME: &'static str = "WriteContentResponse"
const NAME: &'static str = "WriteContentResponse"
Message
.
This name is the same as it appears in the source .proto file, e.g. FooBar
.source§const PACKAGE: &'static str = "containerd.services.content.v1"
const PACKAGE: &'static str = "containerd.services.content.v1"
.
, e.g. google.protobuf
.source§fn full_name() -> String
fn full_name() -> String
Message
.
It’s prefixed with the package name and names of any parent messages,
e.g. google.rpc.BadRequest.FieldViolation
.
By default, this is the package name followed by the message name.
Fully-qualified names must be unique within a domain of Type URLs.source§impl PartialEq for WriteContentResponse
impl PartialEq for WriteContentResponse
impl StructuralPartialEq for WriteContentResponse
Auto Trait Implementations§
impl Freeze for WriteContentResponse
impl RefUnwindSafe for WriteContentResponse
impl Send for WriteContentResponse
impl Sync for WriteContentResponse
impl Unpin for WriteContentResponse
impl UnwindSafe for WriteContentResponse
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)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> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T
in a tonic::Request