pub struct ProviderHost {
pub server_id: String,
pub name: String,
pub ip: String,
pub tags: Vec<String>,
pub metadata: Vec<(String, String)>,
}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).
Provider tags/labels.
metadata: Vec<(String, String)>Provider metadata (region, plan, etc.) as key-value pairs.
Implementations§
Trait Implementations§
Source§impl Clone for ProviderHost
impl Clone for ProviderHost
Source§fn clone(&self) -> ProviderHost
fn clone(&self) -> ProviderHost
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 moreAuto 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