pub struct RoutingConfigV4 {
pub entry: String,
pub affinity_policy: RoutingAffinityPolicyV5,
pub fallback_ttl_ms: Option<u64>,
pub reprobe_preferred_after_ms: Option<u64>,
pub routes: BTreeMap<String, RoutingNodeV4>,
pub policy: RoutingPolicyV4,
pub order: Vec<String>,
pub target: Option<String>,
pub prefer_tags: Vec<BTreeMap<String, String>>,
pub chain: Vec<String>,
pub pools: BTreeMap<String, RoutingPoolV4>,
pub on_exhausted: RoutingExhaustedActionV4,
}Fields§
§entry: String§affinity_policy: RoutingAffinityPolicyV5§fallback_ttl_ms: Option<u64>§reprobe_preferred_after_ms: Option<u64>§routes: BTreeMap<String, RoutingNodeV4>§policy: RoutingPolicyV4§order: Vec<String>§target: Option<String>§chain: Vec<String>§pools: BTreeMap<String, RoutingPoolV4>§on_exhausted: RoutingExhaustedActionV4Implementations§
Source§impl RoutingConfigV4
impl RoutingConfigV4
pub fn ordered_failover(children: Vec<String>) -> Self
pub fn manual_sticky(target: String, children: Vec<String>) -> Self
pub fn tag_preferred( children: Vec<String>, prefer_tags: Vec<BTreeMap<String, String>>, on_exhausted: RoutingExhaustedActionV4, ) -> Self
pub fn single_entry_node(node: RoutingNodeV4) -> Self
pub fn entry_node(&self) -> Option<&RoutingNodeV4>
pub fn entry_node_mut(&mut self) -> Option<&mut RoutingNodeV4>
pub fn sync_compat_from_graph(&mut self)
pub fn sync_graph_from_compat(&mut self)
pub fn route_node_names(&self) -> Vec<String>
pub fn route_node_references(&self, target: &str) -> Vec<String>
pub fn rename_route_node(&mut self, old: &str, new: String) -> Result<()>
pub fn delete_route_node(&mut self, name: &str) -> Result<()>
Trait Implementations§
Source§impl Clone for RoutingConfigV4
impl Clone for RoutingConfigV4
Source§fn clone(&self) -> RoutingConfigV4
fn clone(&self) -> RoutingConfigV4
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 RoutingConfigV4
impl Debug for RoutingConfigV4
Source§impl Default for RoutingConfigV4
impl Default for RoutingConfigV4
Source§impl<'de> Deserialize<'de> for RoutingConfigV4
impl<'de> Deserialize<'de> for RoutingConfigV4
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 RoutingConfigV4
impl RefUnwindSafe for RoutingConfigV4
impl Send for RoutingConfigV4
impl Sync for RoutingConfigV4
impl Unpin for RoutingConfigV4
impl UnsafeUnpin for RoutingConfigV4
impl UnwindSafe for RoutingConfigV4
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