#[non_exhaustive]pub struct TrafficTargetStatus {
pub type: TrafficTargetAllocationType,
pub revision: String,
pub percent: i32,
pub tag: String,
pub uri: String,
/* private fields */
}Expand description
Represents the observed state of a single TrafficTarget entry.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.type: TrafficTargetAllocationTypeThe allocation type for this traffic target.
revision: StringRevision to which this traffic is sent.
percent: i32Specifies percent of the traffic to this Revision.
tag: StringIndicates the string used in the URI to exclusively reference this target.
uri: StringDisplays the target URI.
Implementations§
Source§impl TrafficTargetStatus
impl TrafficTargetStatus
pub fn new() -> Self
Sourcepub fn set_type<T: Into<TrafficTargetAllocationType>>(self, v: T) -> Self
pub fn set_type<T: Into<TrafficTargetAllocationType>>(self, v: T) -> Self
Sets the value of r#type.
Sourcepub fn set_revision<T: Into<String>>(self, v: T) -> Self
pub fn set_revision<T: Into<String>>(self, v: T) -> Self
Sets the value of revision.
Sourcepub fn set_percent<T: Into<i32>>(self, v: T) -> Self
pub fn set_percent<T: Into<i32>>(self, v: T) -> Self
Sets the value of percent.
Trait Implementations§
Source§impl Clone for TrafficTargetStatus
impl Clone for TrafficTargetStatus
Source§fn clone(&self) -> TrafficTargetStatus
fn clone(&self) -> TrafficTargetStatus
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 TrafficTargetStatus
impl Debug for TrafficTargetStatus
Source§impl Default for TrafficTargetStatus
impl Default for TrafficTargetStatus
Source§fn default() -> TrafficTargetStatus
fn default() -> TrafficTargetStatus
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for TrafficTargetStatuswhere
TrafficTargetStatus: Default,
impl<'de> Deserialize<'de> for TrafficTargetStatuswhere
TrafficTargetStatus: Default,
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 Message for TrafficTargetStatus
impl Message for TrafficTargetStatus
Source§impl PartialEq for TrafficTargetStatus
impl PartialEq for TrafficTargetStatus
Source§impl Serialize for TrafficTargetStatus
impl Serialize for TrafficTargetStatus
impl StructuralPartialEq for TrafficTargetStatus
Auto Trait Implementations§
impl Freeze for TrafficTargetStatus
impl RefUnwindSafe for TrafficTargetStatus
impl Send for TrafficTargetStatus
impl Sync for TrafficTargetStatus
impl Unpin for TrafficTargetStatus
impl UnwindSafe for TrafficTargetStatus
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