pub enum ExternalSource {
Registry {
org: String,
name: String,
},
GitHub {
org: String,
repo: String,
path: Option<String>,
ref_: Option<String>,
},
Url {
url: String,
},
}Expand description
Where to fetch an external workflow or agent definition.
Variants§
Registry
A named entry in the TA community registry.
GitHub
A file in a GitHub repository.
Url
A raw URL pointing directly at a YAML file.
Implementations§
Source§impl ExternalSource
impl ExternalSource
Sourcepub fn parse(source: &str) -> Result<Self, SourceError>
pub fn parse(source: &str) -> Result<Self, SourceError>
Parse a human-friendly source string into an ExternalSource.
Supported formats:
registry:org/namegh:org/repoorgh:org/repo/path/to/file.yamlorgh:org/repo@refhttps://...orhttp://...
Trait Implementations§
Source§impl Clone for ExternalSource
impl Clone for ExternalSource
Source§fn clone(&self) -> ExternalSource
fn clone(&self) -> ExternalSource
Returns a duplicate of the value. Read more
1.0.0 · 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 ExternalSource
impl Debug for ExternalSource
Source§impl<'de> Deserialize<'de> for ExternalSource
impl<'de> Deserialize<'de> for ExternalSource
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 Display for ExternalSource
impl Display for ExternalSource
Source§impl PartialEq for ExternalSource
impl PartialEq for ExternalSource
Source§impl Serialize for ExternalSource
impl Serialize for ExternalSource
impl Eq for ExternalSource
impl StructuralPartialEq for ExternalSource
Auto Trait Implementations§
impl Freeze for ExternalSource
impl RefUnwindSafe for ExternalSource
impl Send for ExternalSource
impl Sync for ExternalSource
impl Unpin for ExternalSource
impl UnsafeUnpin for ExternalSource
impl UnwindSafe for ExternalSource
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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<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> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.