pub enum NeedsDependency {
Simple(String),
WithMode {
node: String,
mode: ConnectionMode,
},
}Expand description
A single dependency with optional connection mode.
Variants§
Simple(String)
Simple string: just the node name (mode defaults to Reliable)
WithMode
Object with node name and optional mode
Trait Implementations§
Source§impl Debug for NeedsDependency
impl Debug for NeedsDependency
Source§impl<'de> Deserialize<'de> for NeedsDependency
impl<'de> Deserialize<'de> for NeedsDependency
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
Auto Trait Implementations§
impl Freeze for NeedsDependency
impl RefUnwindSafe for NeedsDependency
impl Send for NeedsDependency
impl Sync for NeedsDependency
impl Unpin for NeedsDependency
impl UnwindSafe for NeedsDependency
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