pub struct DecisionChain {
pub principal: Option<PrincipalId>,
pub partition: Option<PartitionId>,
pub cluster: Option<ClusterId>,
pub index: Option<IndexName>,
}Expand description
The ordered chain of routing decisions made before a failure occurred.
Each field is populated as the request advances through the pipeline so a failure at any stage carries the full upstream context. Every field is an id (never a value), keeping the chain safe to emit in telemetry.
Fields§
§principal: Option<PrincipalId>The authenticated principal, if authentication succeeded.
partition: Option<PartitionId>The resolved partition, if resolution succeeded.
cluster: Option<ClusterId>The target cluster, if placement resolved.
index: Option<IndexName>The target index, if placement resolved.
Implementations§
Source§impl DecisionChain
impl DecisionChain
Trait Implementations§
Source§impl Clone for DecisionChain
impl Clone for DecisionChain
Source§fn clone(&self) -> DecisionChain
fn clone(&self) -> DecisionChain
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 DecisionChain
impl Debug for DecisionChain
Source§impl Default for DecisionChain
impl Default for DecisionChain
Source§fn default() -> DecisionChain
fn default() -> DecisionChain
Returns the “default value” for a type. Read more
impl Eq for DecisionChain
Source§impl PartialEq for DecisionChain
impl PartialEq for DecisionChain
Source§fn eq(&self, other: &DecisionChain) -> bool
fn eq(&self, other: &DecisionChain) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for DecisionChain
Auto Trait Implementations§
impl Freeze for DecisionChain
impl RefUnwindSafe for DecisionChain
impl Send for DecisionChain
impl Sync for DecisionChain
impl Unpin for DecisionChain
impl UnsafeUnpin for DecisionChain
impl UnwindSafe for DecisionChain
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