#[non_exhaustive]pub struct OpenObjectRequest {
pub bucket: String,
pub object: String,
pub generation: i64,
pub if_generation_match: Option<i64>,
pub if_generation_not_match: Option<i64>,
pub if_metageneration_match: Option<i64>,
pub if_metageneration_not_match: Option<i64>,
pub common_object_request_params: Option<CommonObjectRequestParams>,
pub ranges: Vec<ReadRange>,
}Expand description
The request type for a bidi read object streaming RPC.
This type is used in the Storage stub to represent a request for open_object. Applications rarely use this type directly, but it might be used in tests where the client library is being mocked.
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.bucket: StringThe bucket containing the target object.
object: StringThe target object name.
generation: i64The target object generation. If zero, then target the latest version of the object.
if_generation_match: Option<i64>If set, return an error if the current generation does not match the value.
if_generation_not_match: Option<i64>If set, return an error if the current generation matches the value.
if_metageneration_match: Option<i64>If set, return an error if the current metageneration does not match the value.
if_metageneration_not_match: Option<i64>If set, return an error if the current metageneration matches the value.
common_object_request_params: Option<CommonObjectRequestParams>Parameters that can be passed to any object request.
At the moment, these are only encryption parameters for Customer-Supplied Encryption Keys.
ranges: Vec<ReadRange>The list of ranges to read as part of the initial request.
Applications can open an object and issue a read request in the same RPC using OpenObject::send_and_read.
In the future, we may offer methods to issue more than one read request.
Implementations§
Source§impl OpenObjectRequest
impl OpenObjectRequest
Sourcepub fn set_bucket<T>(self, v: T) -> Self
pub fn set_bucket<T>(self, v: T) -> Self
Sets the bucket field.
Sourcepub fn set_object<T>(self, v: T) -> Self
pub fn set_object<T>(self, v: T) -> Self
Sets the object field.
Sourcepub fn set_generation(self, v: i64) -> Self
pub fn set_generation(self, v: i64) -> Self
Sets the generation field.
Sourcepub fn set_if_generation_match(self, v: i64) -> Self
pub fn set_if_generation_match(self, v: i64) -> Self
Sets the if_generation_match field.
Sourcepub fn set_or_clear_if_generation_match(self, v: Option<i64>) -> Self
pub fn set_or_clear_if_generation_match(self, v: Option<i64>) -> Self
Sets the if_generation_match field.
Sourcepub fn set_if_generation_not_match(self, v: i64) -> Self
pub fn set_if_generation_not_match(self, v: i64) -> Self
Sets the if_generation_not_match field.
Sourcepub fn set_or_clear_if_generation_not_match(self, v: Option<i64>) -> Self
pub fn set_or_clear_if_generation_not_match(self, v: Option<i64>) -> Self
Sets the if_generation_not_match field.
Sourcepub fn set_if_metageneration_match(self, v: i64) -> Self
pub fn set_if_metageneration_match(self, v: i64) -> Self
Sets the if_metageneration_match field.
Sourcepub fn set_or_clear_if_metageneration_match(self, v: Option<i64>) -> Self
pub fn set_or_clear_if_metageneration_match(self, v: Option<i64>) -> Self
Sets the if_metageneration_match field.
Sourcepub fn set_if_metageneration_not_match(self, v: i64) -> Self
pub fn set_if_metageneration_not_match(self, v: i64) -> Self
Sets the if_metageneration_not_match field.
Sourcepub fn set_or_clear_if_metageneration_not_match(self, v: Option<i64>) -> Self
pub fn set_or_clear_if_metageneration_not_match(self, v: Option<i64>) -> Self
Sets the if_metageneration_not_match field.
Sourcepub fn set_common_object_request_params(
self,
v: CommonObjectRequestParams,
) -> Self
pub fn set_common_object_request_params( self, v: CommonObjectRequestParams, ) -> Self
Sets the common_object_request_params field.
Sourcepub fn set_or_clear_common_object_request_params(
self,
v: Option<CommonObjectRequestParams>,
) -> Self
pub fn set_or_clear_common_object_request_params( self, v: Option<CommonObjectRequestParams>, ) -> Self
Sets the common_object_request_params field.
Trait Implementations§
Source§impl Clone for OpenObjectRequest
impl Clone for OpenObjectRequest
Source§fn clone(&self) -> OpenObjectRequest
fn clone(&self) -> OpenObjectRequest
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for OpenObjectRequest
impl Debug for OpenObjectRequest
Source§impl Default for OpenObjectRequest
impl Default for OpenObjectRequest
Source§fn default() -> OpenObjectRequest
fn default() -> OpenObjectRequest
Source§impl PartialEq for OpenObjectRequest
impl PartialEq for OpenObjectRequest
impl StructuralPartialEq for OpenObjectRequest
Auto Trait Implementations§
impl !Freeze for OpenObjectRequest
impl RefUnwindSafe for OpenObjectRequest
impl Send for OpenObjectRequest
impl Sync for OpenObjectRequest
impl Unpin for OpenObjectRequest
impl UnwindSafe for OpenObjectRequest
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