pub struct RegistrationRecord {
pub service: String,
pub implementation: String,
pub namespace: String,
pub line: usize,
}Expand description
One two-type-argument DI service registration.
The shape is an invocation whose method name begins Add or TryAdd
and ends Singleton, Scoped or Transient, carrying exactly two type
arguments – the first the service type, the second the implementation
type. service/implementation carry the type argument’s raw text
verbatim (dotted when the source wrote it qualified); splitting a dotted
name into its bare tail plus its full qualified form, the way an
ordinary type reference does, is the resolver’s job, not the
extractor’s.
Fields§
§service: StringThe service (first type argument) name, as written.
implementation: StringThe implementation (second type argument) name, as written.
namespace: StringThe registration call’s enclosing namespace.
line: usizeThe registration call’s 1-based line.
Trait Implementations§
Source§impl Clone for RegistrationRecord
impl Clone for RegistrationRecord
Source§impl Debug for RegistrationRecord
impl Debug for RegistrationRecord
Source§impl PartialEq for RegistrationRecord
impl PartialEq for RegistrationRecord
impl StructuralPartialEq for RegistrationRecord
Auto Trait Implementations§
impl Freeze for RegistrationRecord
impl RefUnwindSafe for RegistrationRecord
impl Send for RegistrationRecord
impl Sync for RegistrationRecord
impl Unpin for RegistrationRecord
impl UnsafeUnpin for RegistrationRecord
impl UnwindSafe for RegistrationRecord
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<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more