pub struct RenewLeaseRequest {
pub schedule_time: Option<String>,
pub response_view: Option<String>,
pub lease_duration: Option<String>,
}Expand description
Request message for renewing a lease using RenewLease.
§Activities
This type is used in activities, which are methods you may call on this type or where this type is involved in. The list links the activity name, along with information about where it is used (one of request and response).
Fields§
§schedule_time: Option<String>Required.
The task’s current schedule time, available in the schedule_time returned by LeaseTasks response or RenewLease response. This restriction is to ensure that your worker currently holds the lease.
response_view: Option<String>The response_view specifies which subset of the Task will be returned.
By default response_view is BASIC; not all information is retrieved by default because some data, such as payloads, might be desirable to return only when needed because of its large size or because of the sensitivity of data that it contains.
Authorization for FULL requires
cloudtasks.tasks.fullView Google IAM
permission on the Task resource.
lease_duration: Option<String>Required.
The desired new lease duration, starting from now.
The maximum lease duration is 1 week.
lease_duration will be truncated to the nearest second.
Trait Implementations§
source§impl Clone for RenewLeaseRequest
impl Clone for RenewLeaseRequest
source§fn clone(&self) -> RenewLeaseRequest
fn clone(&self) -> RenewLeaseRequest
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for RenewLeaseRequest
impl Debug for RenewLeaseRequest
source§impl Default for RenewLeaseRequest
impl Default for RenewLeaseRequest
source§fn default() -> RenewLeaseRequest
fn default() -> RenewLeaseRequest
source§impl<'de> Deserialize<'de> for RenewLeaseRequest
impl<'de> Deserialize<'de> for RenewLeaseRequest
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
source§impl Serialize for RenewLeaseRequest
impl Serialize for RenewLeaseRequest
impl RequestValue for RenewLeaseRequest
Auto Trait Implementations§
impl Freeze for RenewLeaseRequest
impl RefUnwindSafe for RenewLeaseRequest
impl Send for RenewLeaseRequest
impl Sync for RenewLeaseRequest
impl Unpin for RenewLeaseRequest
impl UnwindSafe for RenewLeaseRequest
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§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit)source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more