#[non_exhaustive]pub struct WaitOperationRequest {
pub name: String,
pub timeout: Option<Duration>,
/* private fields */
}Expand description
The request message for [Operations.WaitOperation][google.longrunning.Operations.WaitOperation].
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.name: StringThe name of the operation resource to wait on.
timeout: Option<Duration>The maximum duration to wait before timing out. If left blank, the wait will be at most the time permitted by the underlying HTTP/RPC protocol. If RPC context deadline is also specified, the shorter one will be used.
Implementations§
Source§impl WaitOperationRequest
impl WaitOperationRequest
pub fn new() -> Self
Sourcepub fn set_timeout<T>(self, v: T) -> Self
pub fn set_timeout<T>(self, v: T) -> Self
Sets the value of timeout.
Trait Implementations§
Source§impl Clone for WaitOperationRequest
impl Clone for WaitOperationRequest
Source§fn clone(&self) -> WaitOperationRequest
fn clone(&self) -> WaitOperationRequest
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for WaitOperationRequest
impl Debug for WaitOperationRequest
Source§impl Default for WaitOperationRequest
impl Default for WaitOperationRequest
Source§fn default() -> WaitOperationRequest
fn default() -> WaitOperationRequest
Returns the “default value” for a type. Read more
Source§impl Message for WaitOperationRequest
impl Message for WaitOperationRequest
Source§impl PartialEq for WaitOperationRequest
impl PartialEq for WaitOperationRequest
impl StructuralPartialEq for WaitOperationRequest
Auto Trait Implementations§
impl Freeze for WaitOperationRequest
impl RefUnwindSafe for WaitOperationRequest
impl Send for WaitOperationRequest
impl Sync for WaitOperationRequest
impl Unpin for WaitOperationRequest
impl UnwindSafe for WaitOperationRequest
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
Mutably borrows from an owned value. Read more