#[non_exhaustive]pub struct GetFolderRequest {
pub name: String,
pub if_metageneration_match: Option<i64>,
pub if_metageneration_not_match: Option<i64>,
pub request_id: String,
/* private fields */
}Expand description
Request message for GetFolder. This operation is only applicable to a hierarchical namespace enabled bucket.
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.name: StringRequired. Name of the folder.
Format: projects/{project}/buckets/{bucket}/folders/{folder}
if_metageneration_match: Option<i64>Makes the operation only succeed conditional on whether the folder’s current metageneration matches the given value.
if_metageneration_not_match: Option<i64>Makes the operation only succeed conditional on whether the folder’s current metageneration does not match the given value.
request_id: StringOptional. A unique identifier for this request. UUID is the recommended format, but other formats are still accepted.
Implementations§
Source§impl GetFolderRequest
impl GetFolderRequest
pub fn new() -> Self
Sourcepub fn set_if_metageneration_match<T>(self, v: T) -> Self
pub fn set_if_metageneration_match<T>(self, v: T) -> Self
Sets the value of if_metageneration_match.
§Example
let x = GetFolderRequest::new().set_if_metageneration_match(42);Sourcepub fn set_or_clear_if_metageneration_match<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_if_metageneration_match<T>(self, v: Option<T>) -> Self
Sets or clears the value of if_metageneration_match.
§Example
let x = GetFolderRequest::new().set_or_clear_if_metageneration_match(Some(42));
let x = GetFolderRequest::new().set_or_clear_if_metageneration_match(None::<i32>);Sourcepub fn set_if_metageneration_not_match<T>(self, v: T) -> Self
pub fn set_if_metageneration_not_match<T>(self, v: T) -> Self
Sets the value of if_metageneration_not_match.
§Example
let x = GetFolderRequest::new().set_if_metageneration_not_match(42);Sourcepub fn set_or_clear_if_metageneration_not_match<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_if_metageneration_not_match<T>(self, v: Option<T>) -> Self
Sets or clears the value of if_metageneration_not_match.
§Example
let x = GetFolderRequest::new().set_or_clear_if_metageneration_not_match(Some(42));
let x = GetFolderRequest::new().set_or_clear_if_metageneration_not_match(None::<i32>);Sourcepub fn set_request_id<T: Into<String>>(self, v: T) -> Self
pub fn set_request_id<T: Into<String>>(self, v: T) -> Self
Trait Implementations§
Source§impl Clone for GetFolderRequest
impl Clone for GetFolderRequest
Source§fn clone(&self) -> GetFolderRequest
fn clone(&self) -> GetFolderRequest
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for GetFolderRequest
impl Debug for GetFolderRequest
Source§impl Default for GetFolderRequest
impl Default for GetFolderRequest
Source§fn default() -> GetFolderRequest
fn default() -> GetFolderRequest
Source§impl Message for GetFolderRequest
impl Message for GetFolderRequest
Source§impl PartialEq for GetFolderRequest
impl PartialEq for GetFolderRequest
impl StructuralPartialEq for GetFolderRequest
Auto Trait Implementations§
impl Freeze for GetFolderRequest
impl RefUnwindSafe for GetFolderRequest
impl Send for GetFolderRequest
impl Sync for GetFolderRequest
impl Unpin for GetFolderRequest
impl UnwindSafe for GetFolderRequest
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