pub struct ClusterAttach {
pub default: Option<bool>,
pub kubeconfig: Option<String>,
pub name: Option<String>,
pub provider: Option<String>,
}Fields§
§default: Option<bool>Default marks this the org’s default cluster for scheduling.
kubeconfig: Option<String>Kubeconfig is the cluster’s kubeconfig, verbatim. Required — a body without one is not an attach.
name: Option<String>Name is the fleet-local name for the cluster; lower-cased, and the key the detach route addresses it by. Required.
provider: Option<String>Provider is a free-form label for where the cluster runs ("gke", "on-prem"); it is display only, not a routing key.
Implementations§
Source§impl ClusterAttach
impl ClusterAttach
pub fn new() -> ClusterAttach
Trait Implementations§
Source§impl Clone for ClusterAttach
impl Clone for ClusterAttach
Source§fn clone(&self) -> ClusterAttach
fn clone(&self) -> ClusterAttach
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ClusterAttach
impl Debug for ClusterAttach
Source§impl Default for ClusterAttach
impl Default for ClusterAttach
Source§fn default() -> ClusterAttach
fn default() -> ClusterAttach
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ClusterAttach
impl<'de> Deserialize<'de> for ClusterAttach
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 ClusterAttach
impl PartialEq for ClusterAttach
Source§impl Serialize for ClusterAttach
impl Serialize for ClusterAttach
impl StructuralPartialEq for ClusterAttach
Auto Trait Implementations§
impl Freeze for ClusterAttach
impl RefUnwindSafe for ClusterAttach
impl Send for ClusterAttach
impl Sync for ClusterAttach
impl Unpin for ClusterAttach
impl UnsafeUnpin for ClusterAttach
impl UnwindSafe for ClusterAttach
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