pub trait FromClientPart<T> {
type Error;
// Required method
fn get_part(&self) -> Result<T, Self::Error>;
}Expand description
Trait for extracting parts/dependencies from a Client.
Implemented by Client for each dependency type that can be extracted. Used internally by
#[derive(FromClient)] - users should derive FromClient rather than using this trait
directly.
Required Associated Types§
Required Methods§
Implementors§
Source§impl FromClientPart<Arc<ApiConfigurations>> for Client
impl FromClientPart<Arc<ApiConfigurations>> for Client
type Error = Infallible
Source§impl FromClientPart<KeyStore<KeyIds>> for Client
impl FromClientPart<KeyStore<KeyIds>> for Client
type Error = Infallible
Source§impl<T: RepositoryItem> FromClientPart<Arc<dyn Repository<T>>> for Client
Available on crate feature internal only.
impl<T: RepositoryItem> FromClientPart<Arc<dyn Repository<T>>> for Client
Available on crate feature
internal only.