pub struct ServiceSubject<'a> {
pub service: ServiceKind,
pub instance: Option<&'a str>,
}Expand description
A subject resolved to its service and the segment that names the instance.
Fields§
§service: ServiceKindThe service the subject belongs to.
instance: Option<&'a str><name> or <id> for the shaped services; None for the bare ones.
Implementations§
Source§impl ServiceSubject<'_>
impl ServiceSubject<'_>
Sourcepub const fn class(&self) -> AccessRouteClass
pub const fn class(&self) -> AccessRouteClass
The route class this subject carries.
Trait Implementations§
Source§impl<'a> Clone for ServiceSubject<'a>
impl<'a> Clone for ServiceSubject<'a>
Source§impl<'a> Debug for ServiceSubject<'a>
impl<'a> Debug for ServiceSubject<'a>
impl<'a> Eq for ServiceSubject<'a>
Source§impl<'a> PartialEq for ServiceSubject<'a>
impl<'a> PartialEq for ServiceSubject<'a>
impl<'a> StructuralPartialEq for ServiceSubject<'a>
Auto Trait Implementations§
impl<'a> Freeze for ServiceSubject<'a>
impl<'a> RefUnwindSafe for ServiceSubject<'a>
impl<'a> Send for ServiceSubject<'a>
impl<'a> Sync for ServiceSubject<'a>
impl<'a> Unpin for ServiceSubject<'a>
impl<'a> UnsafeUnpin for ServiceSubject<'a>
impl<'a> UnwindSafe for ServiceSubject<'a>
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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,
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.