pub struct ActivateConsentRequest {
pub consent_artifact: Option<String>,
pub expire_time: Option<DateTime<Utc>>,
pub ttl: Option<Duration>,
}
Expand description
Activates the latest revision of the specified Consent by committing a new revision with state
updated to ACTIVE
. If the latest revision of the given Consent is in the ACTIVE
state, no new revision is committed. A FAILED_PRECONDITION error occurs if the latest revision of the given consent is in the REJECTED
or REVOKED
state.
§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§
§consent_artifact: Option<String>
Required. The resource name of the Consent artifact that contains documentation of the user’s consent, of the form projects/{project_id}/locations/{location_id}/datasets/{dataset_id}/consentStores/{consent_store_id}/consentArtifacts/{consent_artifact_id}
. If the draft Consent had a Consent artifact, this Consent artifact overwrites it.
expire_time: Option<DateTime<Utc>>
Timestamp in UTC of when this Consent is considered expired.
ttl: Option<Duration>
The time to live for this Consent from when it is marked as active.
Trait Implementations§
source§impl Clone for ActivateConsentRequest
impl Clone for ActivateConsentRequest
source§fn clone(&self) -> ActivateConsentRequest
fn clone(&self) -> ActivateConsentRequest
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for ActivateConsentRequest
impl Debug for ActivateConsentRequest
source§impl Default for ActivateConsentRequest
impl Default for ActivateConsentRequest
source§fn default() -> ActivateConsentRequest
fn default() -> ActivateConsentRequest
source§impl<'de> Deserialize<'de> for ActivateConsentRequest
impl<'de> Deserialize<'de> for ActivateConsentRequest
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 ActivateConsentRequest
impl Serialize for ActivateConsentRequest
impl RequestValue for ActivateConsentRequest
Auto Trait Implementations§
impl Freeze for ActivateConsentRequest
impl RefUnwindSafe for ActivateConsentRequest
impl Send for ActivateConsentRequest
impl Sync for ActivateConsentRequest
impl Unpin for ActivateConsentRequest
impl UnwindSafe for ActivateConsentRequest
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)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> 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