#[non_exhaustive]pub struct Fleet {
pub project: String,
pub membership: String,
/* private fields */
}Expand description
Fleet related configuration.
Fleets are a Google Cloud concept for logically organizing clusters, letting you use and manage multi-cluster capabilities and apply consistent policies across your systems.
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.project: StringRequired. The name of the Fleet host project where this cluster will be registered.
Project names are formatted as
projects/<project-number>.
membership: StringOutput only. The name of the managed Hub Membership resource associated to this cluster.
Membership names are formatted as
projects/<project-number>/locations/global/membership/<cluster-id>.
Implementations§
Source§impl Fleet
impl Fleet
pub fn new() -> Self
Sourcepub fn set_project<T: Into<String>>(self, v: T) -> Self
pub fn set_project<T: Into<String>>(self, v: T) -> Self
Sets the value of project.
Sourcepub fn set_membership<T: Into<String>>(self, v: T) -> Self
pub fn set_membership<T: Into<String>>(self, v: T) -> Self
Sets the value of membership.
Trait Implementations§
impl StructuralPartialEq for Fleet
Auto Trait Implementations§
impl Freeze for Fleet
impl RefUnwindSafe for Fleet
impl Send for Fleet
impl Sync for Fleet
impl Unpin for Fleet
impl UnwindSafe for Fleet
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