pub struct RepoOrigin {
pub path: String,
pub repo: Option<String>,
pub script_file: Option<String>,
}Expand description
GitOps provenance for a repo-managed YAML artifact — a Manifest
(#678) or a Schedule (#695). Populated by kanade job create /
kanade schedule create from the Git context of the source YAML;
the SPA reads it to render Git-managed entries read-only and link
the operator back at the repo. Never consulted by the runtime.
Fields§
§path: StringRepo-relative path of the source YAML — the primary edit target
the SPA surfaces (e.g. configs/jobs/foo.yaml). Forward slashes
regardless of the authoring OS.
repo: Option<String>origin remote URL, when the repo has one. Lets the SPA turn
path into a clickable link; None for remote-less repos.
script_file: Option<String>Repo-relative path of the script_file: a job manifest inlined,
when it used one — a secondary pointer shown beneath path.
Always None for schedules (they carry no script).
Trait Implementations§
Source§impl Clone for RepoOrigin
impl Clone for RepoOrigin
Source§fn clone(&self) -> RepoOrigin
fn clone(&self) -> RepoOrigin
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for RepoOrigin
impl Debug for RepoOrigin
Source§impl<'de> Deserialize<'de> for RepoOrigin
impl<'de> Deserialize<'de> for RepoOrigin
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>,
impl Eq for RepoOrigin
Source§impl JsonSchema for RepoOrigin
impl JsonSchema for RepoOrigin
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
$ref keyword. Read moreSource§impl PartialEq for RepoOrigin
impl PartialEq for RepoOrigin
Source§fn eq(&self, other: &RepoOrigin) -> bool
fn eq(&self, other: &RepoOrigin) -> bool
self and other values to be equal, and is used by ==.Source§impl Serialize for RepoOrigin
impl Serialize for RepoOrigin
impl StructuralPartialEq for RepoOrigin
Auto Trait Implementations§
impl Freeze for RepoOrigin
impl RefUnwindSafe for RepoOrigin
impl Send for RepoOrigin
impl Sync for RepoOrigin
impl Unpin for RepoOrigin
impl UnsafeUnpin for RepoOrigin
impl UnwindSafe for RepoOrigin
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
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§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
key and return true if they are equal.