pub struct ApplyTrafficSplitOutcome {
pub split: TrafficSplit,
pub previous_generation: Option<u64>,
pub new_generation: Option<u64>,
pub environment: Environment,
}Expand description
Outcome of EnvironmentMutations::set_traffic_split, and the A8
response body. Carries the post-apply split, the generation transition
for audit/observability, and the post-mutation env snapshot (the
operator CLI emits TrafficSplitApplied telemetry from it — tenant
attribution without a re-read, identical local and remote).
On an idempotent same-key-same-entries replay, previous_generation
and new_generation are both None (no state change — and no
telemetry).
Fields§
§split: TrafficSplit§previous_generation: Option<u64>§new_generation: Option<u64>§environment: EnvironmentTrait Implementations§
Source§impl Clone for ApplyTrafficSplitOutcome
impl Clone for ApplyTrafficSplitOutcome
Source§fn clone(&self) -> ApplyTrafficSplitOutcome
fn clone(&self) -> ApplyTrafficSplitOutcome
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ApplyTrafficSplitOutcome
impl Debug for ApplyTrafficSplitOutcome
Source§impl<'de> Deserialize<'de> for ApplyTrafficSplitOutcome
impl<'de> Deserialize<'de> for ApplyTrafficSplitOutcome
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
Auto Trait Implementations§
impl Freeze for ApplyTrafficSplitOutcome
impl RefUnwindSafe for ApplyTrafficSplitOutcome
impl Send for ApplyTrafficSplitOutcome
impl Sync for ApplyTrafficSplitOutcome
impl Unpin for ApplyTrafficSplitOutcome
impl UnsafeUnpin for ApplyTrafficSplitOutcome
impl UnwindSafe for ApplyTrafficSplitOutcome
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> FutureExt for T
impl<T> FutureExt for T
Source§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
Source§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
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> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request