pub struct Dependencies { /* private fields */ }Expand description
Exact dependency routes selected for one Plugin generation.
Implementations§
Source§impl Dependencies
impl Dependencies
Sourcepub fn one(&self, requirement_id: &str) -> Result<Dependency, String>
pub fn one(&self, requirement_id: &str) -> Result<Dependency, String>
Resolves exactly one provider for a named dependency role.
Sourcepub fn optional(
&self,
requirement_id: &str,
) -> Result<Option<Dependency>, String>
pub fn optional( &self, requirement_id: &str, ) -> Result<Option<Dependency>, String>
Resolves zero or one provider for a named dependency role.
Sourcepub fn many(&self, requirement_id: &str) -> Vec<Dependency>
pub fn many(&self, requirement_id: &str) -> Vec<Dependency>
Resolves all providers for a named dependency role in Plan order.
Trait Implementations§
Source§impl Clone for Dependencies
impl Clone for Dependencies
Source§impl Debug for Dependencies
impl Debug for Dependencies
Auto Trait Implementations§
impl Freeze for Dependencies
impl RefUnwindSafe for Dependencies
impl Send for Dependencies
impl Sync for Dependencies
impl Unpin for Dependencies
impl UnsafeUnpin for Dependencies
impl UnwindSafe for Dependencies
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> Plugin for T
impl<T> Plugin for T
Source§fn create(_context: CreateContext) -> Result<T, String>
fn create(_context: CreateContext) -> Result<T, String>
Constructs the complete object. Dependency calls use
context.ctx().Source§const CONFIGURATION_SCHEMA: Option<&'static str> = None
const CONFIGURATION_SCHEMA: Option<&'static str> = None
Portable JSON Schema for this Plugin’s configuration, when it accepts configuration.
Source§fn requirements() -> &'static [Requirement]
fn requirements() -> &'static [Requirement]
Source-declared named dependencies required by this object.