pub struct ServiceDiscoveredHost {
pub service_port_id: Option<i32>,
pub discovered_host_id: Option<i32>,
}
Expand description
Represents the association between a ServicePort
and a DiscoveredHost
.
This struct is used to link a discovered host with the service ports it has open, typically for database associations.
Fields§
§service_port_id: Option<i32>
§discovered_host_id: Option<i32>
Implementations§
Source§impl ServiceDiscoveredHost
impl ServiceDiscoveredHost
Sourcepub fn new(
service_port_id: Option<i32>,
discovered_host_id: Option<i32>,
) -> Self
pub fn new( service_port_id: Option<i32>, discovered_host_id: Option<i32>, ) -> Self
Creates a new instance of ServiceDiscoveredHost
.
This constructor links a service port with a discovered host.
§Arguments
service_port_id
- The ID of the associated service port.discovered_host_id
- The ID of the associated discovered host.
§Returns
A new instance of ServiceDiscoveredHost
with the specified associations.
Trait Implementations§
Source§impl Clone for ServiceDiscoveredHost
impl Clone for ServiceDiscoveredHost
Source§fn clone(&self) -> ServiceDiscoveredHost
fn clone(&self) -> ServiceDiscoveredHost
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 CustomSerializer<ServiceDiscoveredHost> for ServiceDiscoveredHost
impl CustomSerializer<ServiceDiscoveredHost> for ServiceDiscoveredHost
Source§fn to_json_string(&self) -> String
fn to_json_string(&self) -> String
Serializes the implementor into a JSON string. Read more
Source§fn from_json_string(data_string: String) -> Twhere
T: for<'a> Deserialize<'a>,
fn from_json_string(data_string: String) -> Twhere
T: for<'a> Deserialize<'a>,
Deserializes an instance of the implementing type from a JSON string. Read more
Source§impl Debug for ServiceDiscoveredHost
impl Debug for ServiceDiscoveredHost
Source§impl<'de> Deserialize<'de> for ServiceDiscoveredHost
impl<'de> Deserialize<'de> for ServiceDiscoveredHost
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<'a, R: Row> FromRow<'a, R> for ServiceDiscoveredHost
impl<'a, R: Row> FromRow<'a, R> for ServiceDiscoveredHost
Source§impl Ord for ServiceDiscoveredHost
impl Ord for ServiceDiscoveredHost
Source§fn cmp(&self, other: &ServiceDiscoveredHost) -> Ordering
fn cmp(&self, other: &ServiceDiscoveredHost) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for ServiceDiscoveredHost
impl PartialEq for ServiceDiscoveredHost
Source§impl PartialOrd for ServiceDiscoveredHost
impl PartialOrd for ServiceDiscoveredHost
Source§impl Serialize for ServiceDiscoveredHost
impl Serialize for ServiceDiscoveredHost
impl Eq for ServiceDiscoveredHost
impl StructuralPartialEq for ServiceDiscoveredHost
Auto Trait Implementations§
impl Freeze for ServiceDiscoveredHost
impl RefUnwindSafe for ServiceDiscoveredHost
impl Send for ServiceDiscoveredHost
impl Sync for ServiceDiscoveredHost
impl Unpin for ServiceDiscoveredHost
impl UnwindSafe for ServiceDiscoveredHost
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<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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