Struct nomad_client::models::spread_target::SpreadTarget
source · pub struct SpreadTarget {
pub value: Option<String>,
pub percent: Option<i32>,
}
Fields§
§value: Option<String>
§percent: Option<i32>
Implementations§
source§impl SpreadTarget
impl SpreadTarget
pub fn new() -> SpreadTarget
Trait Implementations§
source§impl Clone for SpreadTarget
impl Clone for SpreadTarget
source§fn clone(&self) -> SpreadTarget
fn clone(&self) -> SpreadTarget
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 SpreadTarget
impl Debug for SpreadTarget
source§impl<'de> Deserialize<'de> for SpreadTarget
impl<'de> Deserialize<'de> for SpreadTarget
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<SpreadTarget> for SpreadTarget
impl PartialEq<SpreadTarget> for SpreadTarget
source§fn eq(&self, other: &SpreadTarget) -> bool
fn eq(&self, other: &SpreadTarget) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.