#[non_exhaustive]pub struct CreateRuntimeProjectAttachmentRequest {
pub parent: String,
pub runtime_project_attachment_id: String,
pub runtime_project_attachment: Option<RuntimeProjectAttachment>,
/* private fields */
}Expand description
The CreateRuntimeProjectAttachment method’s request.
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 parent resource for the Runtime Project Attachment.
Format: projects/{project}/locations/{location}
runtime_project_attachment_id: StringRequired. The ID to use for the Runtime Project Attachment, which will become the final component of the Runtime Project Attachment’s name. The ID must be the same as the project ID of the Google cloud project specified in the runtime_project_attachment.runtime_project field.
runtime_project_attachment: Option<RuntimeProjectAttachment>Required. The Runtime Project Attachment to create.
Implementations§
Source§impl CreateRuntimeProjectAttachmentRequest
impl CreateRuntimeProjectAttachmentRequest
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
Sourcepub fn set_runtime_project_attachment_id<T: Into<String>>(self, v: T) -> Self
pub fn set_runtime_project_attachment_id<T: Into<String>>(self, v: T) -> Self
Sets the value of runtime_project_attachment_id.
§Example
ⓘ
let x = CreateRuntimeProjectAttachmentRequest::new().set_runtime_project_attachment_id("example");Sourcepub fn set_runtime_project_attachment<T>(self, v: T) -> Selfwhere
T: Into<RuntimeProjectAttachment>,
pub fn set_runtime_project_attachment<T>(self, v: T) -> Selfwhere
T: Into<RuntimeProjectAttachment>,
Sets the value of runtime_project_attachment.
§Example
ⓘ
use google_cloud_apihub_v1::model::RuntimeProjectAttachment;
let x = CreateRuntimeProjectAttachmentRequest::new().set_runtime_project_attachment(RuntimeProjectAttachment::default()/* use setters */);Sourcepub fn set_or_clear_runtime_project_attachment<T>(self, v: Option<T>) -> Selfwhere
T: Into<RuntimeProjectAttachment>,
pub fn set_or_clear_runtime_project_attachment<T>(self, v: Option<T>) -> Selfwhere
T: Into<RuntimeProjectAttachment>,
Sets or clears the value of runtime_project_attachment.
§Example
ⓘ
use google_cloud_apihub_v1::model::RuntimeProjectAttachment;
let x = CreateRuntimeProjectAttachmentRequest::new().set_or_clear_runtime_project_attachment(Some(RuntimeProjectAttachment::default()/* use setters */));
let x = CreateRuntimeProjectAttachmentRequest::new().set_or_clear_runtime_project_attachment(None::<RuntimeProjectAttachment>);Trait Implementations§
Source§impl Clone for CreateRuntimeProjectAttachmentRequest
impl Clone for CreateRuntimeProjectAttachmentRequest
Source§fn clone(&self) -> CreateRuntimeProjectAttachmentRequest
fn clone(&self) -> CreateRuntimeProjectAttachmentRequest
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 Default for CreateRuntimeProjectAttachmentRequest
impl Default for CreateRuntimeProjectAttachmentRequest
Source§fn default() -> CreateRuntimeProjectAttachmentRequest
fn default() -> CreateRuntimeProjectAttachmentRequest
Returns the “default value” for a type. Read more
Source§impl PartialEq for CreateRuntimeProjectAttachmentRequest
impl PartialEq for CreateRuntimeProjectAttachmentRequest
Source§fn eq(&self, other: &CreateRuntimeProjectAttachmentRequest) -> bool
fn eq(&self, other: &CreateRuntimeProjectAttachmentRequest) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for CreateRuntimeProjectAttachmentRequest
Auto Trait Implementations§
impl Freeze for CreateRuntimeProjectAttachmentRequest
impl RefUnwindSafe for CreateRuntimeProjectAttachmentRequest
impl Send for CreateRuntimeProjectAttachmentRequest
impl Sync for CreateRuntimeProjectAttachmentRequest
impl Unpin for CreateRuntimeProjectAttachmentRequest
impl UnsafeUnpin for CreateRuntimeProjectAttachmentRequest
impl UnwindSafe for CreateRuntimeProjectAttachmentRequest
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