pub enum ProjectOrigin {
Manifest {
path: RelativePath,
},
Synthesized {
inputs: Vec<RelativePath>,
},
}Expand description
Where a discovered project came from.
config_anchor records which manifest a project was read from but not
whether there was one. A caller applies different configuration rules to
a synthesized project, and inferring that from an absent anchor turns a
policy decision into a missing field.
Variants§
Manifest
Read from the manifest at this path.
Fields
§
path: RelativePathSynthesized
Synthesized from these sources, in the order the request gave them.
Development-root-relative, copied verbatim from
SourceSelection::paths.
Fields
§
inputs: Vec<RelativePath>Trait Implementations§
Source§impl Clone for ProjectOrigin
impl Clone for ProjectOrigin
Source§impl Debug for ProjectOrigin
impl Debug for ProjectOrigin
Source§impl<'de> Deserialize<'de> for ProjectOrigin
impl<'de> Deserialize<'de> for ProjectOrigin
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
impl Eq for ProjectOrigin
Source§impl PartialEq for ProjectOrigin
impl PartialEq for ProjectOrigin
Source§impl Serialize for ProjectOrigin
impl Serialize for ProjectOrigin
impl StructuralPartialEq for ProjectOrigin
Auto Trait Implementations§
impl Freeze for ProjectOrigin
impl RefUnwindSafe for ProjectOrigin
impl Send for ProjectOrigin
impl Sync for ProjectOrigin
impl Unpin for ProjectOrigin
impl UnsafeUnpin for ProjectOrigin
impl UnwindSafe for ProjectOrigin
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