pub enum Target {
Folder(LocalTarget),
File(FileTarget),
Aspect {
path: LocalTarget,
select: Vec<LogicalPath>,
},
Graph(LocalTarget),
Live(Uri),
}Expand description
Kind and local selection travel with the target, so a Live URI cannot be a folder.
Variants§
Folder(LocalTarget)
File(FileTarget)
Aspect
Graph(LocalTarget)
Historical saved graphs and the migration reader only.
Live(Uri)
Implementations§
Source§impl Target
impl Target
pub fn kind(&self) -> ArtifactKind
pub fn local(&self) -> Option<&Path>
pub fn uri(&self) -> Option<&Uri>
pub fn select(&self) -> &[LogicalPath]
pub fn folder(&self) -> &Path
Sourcepub fn with_kind(
self,
kind: ArtifactKind,
select: Vec<LogicalPath>,
) -> Result<Self, ScopeError>
pub fn with_kind( self, kind: ArtifactKind, select: Vec<LogicalPath>, ) -> Result<Self, ScopeError>
Join the separate fields of an existing local declaration or saved wire record.
pub fn text(&self) -> Cow<'_, str>
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Target
impl<'de> Deserialize<'de> for Target
Source§fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
impl Eq for Target
Auto Trait Implementations§
impl Forget for Target
impl Freeze for Targetwhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
PhantomData<OsString>: Freeze,
PhantomData<LogicalPath>: Freeze,
impl Move for Target
impl RefUnwindSafe for Target
impl Send for Targetwhere
RawVecInner: Send,
impl Sync for Targetwhere
RawVecInner: Sync,
impl Unpin for Target
impl UnsafeUnpin for Targetwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<OsString>: UnsafeUnpin,
PhantomData<LogicalPath>: UnsafeUnpin,
impl UnwindSafe for Targetwhere
RawVecInner: UnwindSafe,
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.