#[non_exhaustive]pub struct DependencyBlock {
pub name: Arc<str>,
pub config_path: Arc<Path>,
pub mock_outputs: AttributeMap,
pub span: Span,
}Expand description
dependency "label" { config_path = "..."; mock_outputs = ... } block.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.name: Arc<str>Dependency name (e.g. "vpc").
config_path: Arc<Path>Resolved absolute path of the dependency component dir.
mock_outputs: AttributeMapOptional mock_outputs = { ... } attribute body, kept verbatim.
span: SpanSpan of the dependency block.
Implementations§
Source§impl DependencyBlock
impl DependencyBlock
Sourcepub fn builder() -> DependencyBlockBuilder<((), (), (), ())>
pub fn builder() -> DependencyBlockBuilder<((), (), (), ())>
Create a builder for building DependencyBlock.
On the builder, call .name(...), .config_path(...), .mock_outputs(...)(optional), .span(...) to set the values of the fields.
Finally, call .build() to create the instance of DependencyBlock.
Trait Implementations§
Source§impl Clone for DependencyBlock
impl Clone for DependencyBlock
Source§fn clone(&self) -> DependencyBlock
fn clone(&self) -> DependencyBlock
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for DependencyBlock
impl Debug for DependencyBlock
Source§impl<'de> Deserialize<'de> for DependencyBlock
impl<'de> Deserialize<'de> for DependencyBlock
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 DependencyBlock
impl PartialEq for DependencyBlock
Source§fn eq(&self, other: &DependencyBlock) -> bool
fn eq(&self, other: &DependencyBlock) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for DependencyBlock
impl Serialize for DependencyBlock
impl StructuralPartialEq for DependencyBlock
Auto Trait Implementations§
impl Freeze for DependencyBlock
impl RefUnwindSafe for DependencyBlock
impl Send for DependencyBlock
impl Sync for DependencyBlock
impl Unpin for DependencyBlock
impl UnsafeUnpin for DependencyBlock
impl UnwindSafe for DependencyBlock
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