pub struct FragRegistration {
pub service: String,
pub implementation: String,
pub namespace: String,
pub line: usize,
}Expand description
One two-type-argument DI service registration a file’s invocations
record – see extract::RegistrationRecord.
service is the first type argument (the interface), implementation
the second (the concrete type). Field order (service,
implementation, namespace, line) is significant; neither type name
carries its enclosing-namespace qualification here (that is the
resolver’s job, against the registration site’s OWN using/alias context,
read from namespace).
Fields§
§service: StringThe service (first type argument) name.
implementation: StringThe implementation (second type argument) name.
namespace: StringThe registration call’s enclosing namespace.
line: usizeThe registration call’s 1-based line.
Trait Implementations§
Source§impl Clone for FragRegistration
impl Clone for FragRegistration
Source§impl Debug for FragRegistration
impl Debug for FragRegistration
Source§impl<'de> Deserialize<'de> for FragRegistration
impl<'de> Deserialize<'de> for FragRegistration
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
Source§impl PartialEq for FragRegistration
impl PartialEq for FragRegistration
Source§impl Serialize for FragRegistration
impl Serialize for FragRegistration
impl StructuralPartialEq for FragRegistration
Auto Trait Implementations§
impl Freeze for FragRegistration
impl RefUnwindSafe for FragRegistration
impl Send for FragRegistration
impl Sync for FragRegistration
impl Unpin for FragRegistration
impl UnsafeUnpin for FragRegistration
impl UnwindSafe for FragRegistration
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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