pub struct DefaultRoute {
pub source: String,
pub fallback: Option<String>,
}Expand description
[default] block.
Fields§
§source: StringSource name to dispatch to when no [[route]] matches.
fallback: Option<String>Source name to fall back to when default.source reports
is_available() == NotInstalled. Per ADR-021 §2 step 3.
Trait Implementations§
Source§impl Clone for DefaultRoute
impl Clone for DefaultRoute
Source§fn clone(&self) -> DefaultRoute
fn clone(&self) -> DefaultRoute
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 DefaultRoute
impl Debug for DefaultRoute
impl Eq for DefaultRoute
Source§impl PartialEq for DefaultRoute
impl PartialEq for DefaultRoute
Source§fn eq(&self, other: &DefaultRoute) -> bool
fn eq(&self, other: &DefaultRoute) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for DefaultRoute
Auto Trait Implementations§
impl Freeze for DefaultRoute
impl RefUnwindSafe for DefaultRoute
impl Send for DefaultRoute
impl Sync for DefaultRoute
impl Unpin for DefaultRoute
impl UnsafeUnpin for DefaultRoute
impl UnwindSafe for DefaultRoute
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.