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<Target, ScopeError>
pub fn with_kind( self, kind: ArtifactKind, select: Vec<LogicalPath>, ) -> Result<Target, 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: D,
) -> Result<Target, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
fn deserialize<D>(
deserializer: D,
) -> Result<Target, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for Target
Source§impl Serialize for Target
impl Serialize for Target
Source§fn serialize<S>(
&self,
serializer: S,
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
fn serialize<S>(
&self,
serializer: S,
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations§
impl Forget for Target
impl Freeze for Target
impl Move for Target
impl RefUnwindSafe for Target
impl Send for Target
impl Sync for Target
impl Unpin for Target
impl UnsafeUnpin for Target
impl UnwindSafe for Target
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.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoToolOutput for Twhere
T: Serialize + 'static,
impl<T> IntoToolOutput for Twhere
T: Serialize + 'static,
Source§fn into_tool_output(self) -> Result<ToolOutput, ToolExecutionError>
fn into_tool_output(self) -> Result<ToolOutput, ToolExecutionError>
Convert this value without routing structured data through a string.