#[non_exhaustive]pub struct ProvisionProjectRequest {
pub name: String,
pub accept_data_use_terms: bool,
pub data_use_terms_version: String,
/* private fields */
}Available on crate feature
project-service only.Expand description
Request for ProjectService.ProvisionProject method.
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: StringRequired. Full resource name of a
Project, such as
projects/{project_id_or_number}.
accept_data_use_terms: boolRequired. Set to true to specify that caller has read and would like to
give consent to the Terms for data
use.
data_use_terms_version: StringRequired. The version of the Terms for data use that caller has read and would like to give consent to.
Acceptable version is 2022-11-23, and this may change over time.
Implementations§
Source§impl ProvisionProjectRequest
impl ProvisionProjectRequest
pub fn new() -> Self
Sourcepub fn set_accept_data_use_terms<T: Into<bool>>(self, v: T) -> Self
pub fn set_accept_data_use_terms<T: Into<bool>>(self, v: T) -> Self
Sets the value of accept_data_use_terms.
§Example
ⓘ
let x = ProvisionProjectRequest::new().set_accept_data_use_terms(true);Sourcepub fn set_data_use_terms_version<T: Into<String>>(self, v: T) -> Self
pub fn set_data_use_terms_version<T: Into<String>>(self, v: T) -> Self
Sets the value of data_use_terms_version.
§Example
ⓘ
let x = ProvisionProjectRequest::new().set_data_use_terms_version("example");Trait Implementations§
Source§impl Clone for ProvisionProjectRequest
impl Clone for ProvisionProjectRequest
Source§fn clone(&self) -> ProvisionProjectRequest
fn clone(&self) -> ProvisionProjectRequest
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 ProvisionProjectRequest
impl Debug for ProvisionProjectRequest
Source§impl Default for ProvisionProjectRequest
impl Default for ProvisionProjectRequest
Source§fn default() -> ProvisionProjectRequest
fn default() -> ProvisionProjectRequest
Returns the “default value” for a type. Read more
Source§impl Message for ProvisionProjectRequest
impl Message for ProvisionProjectRequest
Source§impl PartialEq for ProvisionProjectRequest
impl PartialEq for ProvisionProjectRequest
impl StructuralPartialEq for ProvisionProjectRequest
Auto Trait Implementations§
impl Freeze for ProvisionProjectRequest
impl RefUnwindSafe for ProvisionProjectRequest
impl Send for ProvisionProjectRequest
impl Sync for ProvisionProjectRequest
impl Unpin for ProvisionProjectRequest
impl UnwindSafe for ProvisionProjectRequest
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