#[non_exhaustive]pub struct ProjectsListXpnHostsRequest {
pub organization: Option<String>,
/* private fields */
}Available on crate feature
projects only.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.organization: Option<String>Optional organization ID managed by Cloud Resource Manager, for which to list shared VPC host projects. If not specified, the organization will be inferred from the project.
Implementations§
Source§impl ProjectsListXpnHostsRequest
impl ProjectsListXpnHostsRequest
pub fn new() -> Self
Sourcepub fn set_organization<T>(self, v: T) -> Self
pub fn set_organization<T>(self, v: T) -> Self
Sets the value of organization.
§Example
ⓘ
let x = ProjectsListXpnHostsRequest::new().set_organization("example");Sourcepub fn set_or_clear_organization<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_organization<T>(self, v: Option<T>) -> Self
Sets or clears the value of organization.
§Example
ⓘ
let x = ProjectsListXpnHostsRequest::new().set_or_clear_organization(Some("example"));
let x = ProjectsListXpnHostsRequest::new().set_or_clear_organization(None::<String>);Trait Implementations§
Source§impl Clone for ProjectsListXpnHostsRequest
impl Clone for ProjectsListXpnHostsRequest
Source§fn clone(&self) -> ProjectsListXpnHostsRequest
fn clone(&self) -> ProjectsListXpnHostsRequest
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 ProjectsListXpnHostsRequest
impl Debug for ProjectsListXpnHostsRequest
Source§impl Default for ProjectsListXpnHostsRequest
impl Default for ProjectsListXpnHostsRequest
Source§fn default() -> ProjectsListXpnHostsRequest
fn default() -> ProjectsListXpnHostsRequest
Returns the “default value” for a type. Read more
impl StructuralPartialEq for ProjectsListXpnHostsRequest
Auto Trait Implementations§
impl Freeze for ProjectsListXpnHostsRequest
impl RefUnwindSafe for ProjectsListXpnHostsRequest
impl Send for ProjectsListXpnHostsRequest
impl Sync for ProjectsListXpnHostsRequest
impl Unpin for ProjectsListXpnHostsRequest
impl UnwindSafe for ProjectsListXpnHostsRequest
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