#[non_exhaustive]pub struct CreatePersistentResourceRequest {
pub parent: String,
pub persistent_resource: Option<PersistentResource>,
pub persistent_resource_id: String,
/* private fields */
}Expand description
Request message for PersistentResourceService.CreatePersistentResource.
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.parent: StringRequired. The resource name of the Location to create the
PersistentResource in. Format: projects/{project}/locations/{location}
persistent_resource: Option<PersistentResource>Required. The PersistentResource to create.
persistent_resource_id: StringRequired. The ID to use for the PersistentResource, which become the final component of the PersistentResource’s resource name.
The maximum length is 63 characters, and valid characters
are /^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$/.
Implementations§
Source§impl CreatePersistentResourceRequest
impl CreatePersistentResourceRequest
pub fn new() -> Self
Sourcepub fn set_parent<T: Into<String>>(self, v: T) -> Self
pub fn set_parent<T: Into<String>>(self, v: T) -> Self
Sets the value of parent.
Sourcepub fn set_persistent_resource<T: Into<Option<PersistentResource>>>(
self,
v: T,
) -> Self
pub fn set_persistent_resource<T: Into<Option<PersistentResource>>>( self, v: T, ) -> Self
Sets the value of persistent_resource.
Sourcepub fn set_persistent_resource_id<T: Into<String>>(self, v: T) -> Self
pub fn set_persistent_resource_id<T: Into<String>>(self, v: T) -> Self
Sets the value of persistent_resource_id.
Trait Implementations§
Source§impl Clone for CreatePersistentResourceRequest
impl Clone for CreatePersistentResourceRequest
Source§fn clone(&self) -> CreatePersistentResourceRequest
fn clone(&self) -> CreatePersistentResourceRequest
Returns a copy 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 Default for CreatePersistentResourceRequest
impl Default for CreatePersistentResourceRequest
Source§fn default() -> CreatePersistentResourceRequest
fn default() -> CreatePersistentResourceRequest
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for CreatePersistentResourceRequest
impl<'de> Deserialize<'de> for CreatePersistentResourceRequest
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>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for CreatePersistentResourceRequest
impl PartialEq for CreatePersistentResourceRequest
Source§fn eq(&self, other: &CreatePersistentResourceRequest) -> bool
fn eq(&self, other: &CreatePersistentResourceRequest) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for CreatePersistentResourceRequest
Auto Trait Implementations§
impl Freeze for CreatePersistentResourceRequest
impl RefUnwindSafe for CreatePersistentResourceRequest
impl Send for CreatePersistentResourceRequest
impl Sync for CreatePersistentResourceRequest
impl Unpin for CreatePersistentResourceRequest
impl UnwindSafe for CreatePersistentResourceRequest
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