pub enum GithubRepoRemote {
Https {
url: Url,
key: GithubRepoKey,
},
Ssh(GithubSshRepoRemote),
}Expand description
GitHub repository remote syntax accepted for challenge review record provenance.
Variants§
Https
HTTPS repository URL such as https://github.com/agentics-reifying/agentics-challenges.
Fields
key: GithubRepoKeyCanonical owner/repository key for uniqueness and authorization.
Ssh(GithubSshRepoRemote)
SSH repository remote such as git@github.com:agentics-reifying/agentics-challenges.git.
Implementations§
Source§impl GithubRepoRemote
impl GithubRepoRemote
Sourcepub fn try_new(value: impl AsRef<str>) -> Result<Self, UrlFieldError>
pub fn try_new(value: impl AsRef<str>) -> Result<Self, UrlFieldError>
Parse and validate a GitHub repository remote.
Sourcepub fn repository_key(&self) -> &GithubRepoKey
pub fn repository_key(&self) -> &GithubRepoKey
Return the canonical GitHub owner/repository key.
This key is not a URL and does not preserve the submitted remote syntax.
It collapses accepted GitHub HTTPS and SSH remotes for the same
repository into one owner/repo identity for duplicate detection and
authorization checks.
Trait Implementations§
Source§impl Clone for GithubRepoRemote
impl Clone for GithubRepoRemote
Source§fn clone(&self) -> GithubRepoRemote
fn clone(&self) -> GithubRepoRemote
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 GithubRepoRemote
impl Debug for GithubRepoRemote
Source§impl<'de> Deserialize<'de> for GithubRepoRemote
impl<'de> Deserialize<'de> for GithubRepoRemote
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>,
Handles deserialize for this module.
Source§impl Display for GithubRepoRemote
impl Display for GithubRepoRemote
impl Eq for GithubRepoRemote
Source§impl FromStr for GithubRepoRemote
impl FromStr for GithubRepoRemote
Source§impl Hash for GithubRepoRemote
impl Hash for GithubRepoRemote
Source§impl JsonSchema for GithubRepoRemote
impl JsonSchema for GithubRepoRemote
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Handles inline schema for this module.
Source§fn schema_name() -> Cow<'static, str>
fn schema_name() -> Cow<'static, str>
Handles schema name for this module.
Source§fn json_schema(_: &mut SchemaGenerator) -> Schema
fn json_schema(_: &mut SchemaGenerator) -> Schema
Handles json schema for this module.
Source§impl PartialEq for GithubRepoRemote
impl PartialEq for GithubRepoRemote
Source§fn eq(&self, other: &GithubRepoRemote) -> bool
fn eq(&self, other: &GithubRepoRemote) -> bool
self and other values to be equal, and is used by ==.Source§impl Serialize for GithubRepoRemote
impl Serialize for GithubRepoRemote
impl StructuralPartialEq for GithubRepoRemote
Auto Trait Implementations§
impl Freeze for GithubRepoRemote
impl RefUnwindSafe for GithubRepoRemote
impl Send for GithubRepoRemote
impl Sync for GithubRepoRemote
impl Unpin for GithubRepoRemote
impl UnsafeUnpin for GithubRepoRemote
impl UnwindSafe for GithubRepoRemote
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
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.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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T, O> Matches<O> for Twhere
T: PartialEq<O>,
impl<T, O> Matches<O> for Twhere
T: PartialEq<O>,
fn validate_matches(&self, other: &O) -> bool
Source§impl<T> ToCompactString for Twhere
T: Display,
impl<T> ToCompactString for Twhere
T: Display,
Source§fn try_to_compact_string(&self) -> Result<CompactString, ToCompactStringError>
fn try_to_compact_string(&self) -> Result<CompactString, ToCompactStringError>
ToCompactString::to_compact_string() Read moreSource§fn to_compact_string(&self) -> CompactString
fn to_compact_string(&self) -> CompactString
CompactString. Read more