pub struct ProviderHost {
pub server_id: String,
pub name: String,
pub ip: String,
pub tags: Vec<String>,
pub metadata: Vec<(String, String)>,
pub port: Option<u16>,
pub directives: Vec<(String, String)>,
pub retract_directives: Vec<RetractDirective>,
}Expand description
A host discovered from a cloud provider API.
Fields§
§server_id: StringProvider-assigned server ID.
name: StringServer name/label.
ip: StringPublic IP address (IPv4 or IPv6) or a hostname the transport resolves.
Provider tags/labels.
metadata: Vec<(String, String)>Provider metadata (region, plan, etc.) as key-value pairs.
port: Option<u16>SSH port when the provider knows it differs from 22.
directives: Vec<(String, String)>Extra ssh_config directives the provider manages on this host, such as
a ProxyCommand. Written on add and kept current on later syncs.
retract_directives: Vec<RetractDirective>Directives the provider once wrote here and now wants gone.
Implementations§
Trait Implementations§
Source§impl Clone for ProviderHost
impl Clone for ProviderHost
Source§impl Debug for ProviderHost
impl Debug for ProviderHost
Auto Trait Implementations§
impl Freeze for ProviderHost
impl RefUnwindSafe for ProviderHost
impl Send for ProviderHost
impl Sync for ProviderHost
impl Unpin for ProviderHost
impl UnsafeUnpin for ProviderHost
impl UnwindSafe for ProviderHost
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more