Skip to main content

GitRemote

Struct GitRemote 

Source
pub struct GitRemote;
Expand description

git ls-remote 기반의 실제 구현.

Trait Implementations§

Source§

impl GithubFacts for GitRemote

Source§

fn resolve_ref(&self, owner_repo: &str, git_ref: &str) -> Result<Option<String>>

owner/repogit_ref(태그/브랜치)가 현재 가리키는 커밋 SHA. 참조가 존재하지 않으면 Ok(None).
Source§

fn commit_reachable(&self, owner_repo: &str, sha: &str) -> Result<Option<bool>>

커밋이 저장소의 정식 히스토리에서 도달 가능한가 (R5 임포스터 커밋 판정). Ok(None) = 판정 불가(미지원) — 규칙은 조용히 건너뛴다.
Source§

fn ref_timestamp(&self, owner_repo: &str, git_ref: &str) -> Result<Option<i64>>

참조가 가리키는 커밋의 커미터 시각, unix epoch 초 (R10 쿨다운 판정). Ok(None) = 참조 없음 또는 판정 불가 — 규칙은 조용히 건너뛴다.
Source§

fn ref_count(&self, owner_repo: &str) -> Result<Option<usize>>

저장소의 버전 태그 개수 (R2 교차 검증) — 유명 액션은 수십 개, 급조 짝퉁은 0~2개. Ok(None) = 판정 불가(미지원/저장소 없음) — 승격하지 않는다.

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.