pub struct ServiceWeights {
pub passing: i64,
pub warning: i64,
}
Expand description
ServiceWeights is the jobspec block which configures how a service instance is weighted in a DNS SRV request based on the service’s health status.
This struct was generated based on the Go types of the official Nomad API client.
Fields§
§passing: i64
§warning: i64
Implementations§
Source§impl ServiceWeights
impl ServiceWeights
pub fn builder() -> ServiceWeightsBuilder
Trait Implementations§
Source§impl Clone for ServiceWeights
impl Clone for ServiceWeights
Source§fn clone(&self) -> ServiceWeights
fn clone(&self) -> ServiceWeights
Returns a copy 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 Debug for ServiceWeights
impl Debug for ServiceWeights
Source§impl Default for ServiceWeights
impl Default for ServiceWeights
Source§fn default() -> ServiceWeights
fn default() -> ServiceWeights
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ServiceWeights
impl<'de> Deserialize<'de> for ServiceWeights
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 ServiceWeights
impl PartialEq for ServiceWeights
Source§impl Serialize for ServiceWeights
impl Serialize for ServiceWeights
impl StructuralPartialEq for ServiceWeights
Auto Trait Implementations§
impl Freeze for ServiceWeights
impl RefUnwindSafe for ServiceWeights
impl Send for ServiceWeights
impl Sync for ServiceWeights
impl Unpin for ServiceWeights
impl UnwindSafe for ServiceWeights
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