#[non_exhaustive]pub struct RewriteResponse {
pub total_bytes_rewritten: i64,
pub object_size: i64,
pub done: bool,
pub rewrite_token: String,
pub resource: Option<Object>,
/* private fields */
}Expand description
A rewrite response.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.total_bytes_rewritten: i64The total bytes written so far, which can be used to provide a waiting user with a progress indicator. This property is always present in the response.
object_size: i64The total size of the object being copied in bytes. This property is always present in the response.
done: booltrue if the copy is finished; otherwise, false if
the copy is in progress. This property is always present in the response.
rewrite_token: StringA token to use in subsequent requests to continue copying data. This token is present in the response only when there is more data to copy.
resource: Option<Object>A resource containing the metadata for the copied-to object. This property is present in the response only when copying completes.
Implementations§
Source§impl RewriteResponse
impl RewriteResponse
pub fn new() -> Self
Sourcepub fn set_total_bytes_rewritten<T: Into<i64>>(self, v: T) -> Self
pub fn set_total_bytes_rewritten<T: Into<i64>>(self, v: T) -> Self
Sets the value of total_bytes_rewritten.
Sourcepub fn set_object_size<T: Into<i64>>(self, v: T) -> Self
pub fn set_object_size<T: Into<i64>>(self, v: T) -> Self
Sets the value of object_size.
Sourcepub fn set_rewrite_token<T: Into<String>>(self, v: T) -> Self
pub fn set_rewrite_token<T: Into<String>>(self, v: T) -> Self
Sets the value of rewrite_token.
Sourcepub fn set_resource<T>(self, v: T) -> Self
pub fn set_resource<T>(self, v: T) -> Self
Sets the value of resource.
Trait Implementations§
Source§impl Clone for RewriteResponse
impl Clone for RewriteResponse
Source§fn clone(&self) -> RewriteResponse
fn clone(&self) -> RewriteResponse
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for RewriteResponse
impl Debug for RewriteResponse
Source§impl Default for RewriteResponse
impl Default for RewriteResponse
Source§fn default() -> RewriteResponse
fn default() -> RewriteResponse
Source§impl Message for RewriteResponse
impl Message for RewriteResponse
Source§impl PartialEq for RewriteResponse
impl PartialEq for RewriteResponse
impl StructuralPartialEq for RewriteResponse
Auto Trait Implementations§
impl !Freeze for RewriteResponse
impl RefUnwindSafe for RewriteResponse
impl Send for RewriteResponse
impl Sync for RewriteResponse
impl Unpin for RewriteResponse
impl UnwindSafe for RewriteResponse
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> 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