pub struct RepoEntry {
pub name: String,
pub url: Option<String>,
pub local: Option<PathBuf>,
pub commit: Option<String>,
}Expand description
清单中的单个仓库条目(本地路径与远程 URL 二选一;commit 可选钉死)
Fields§
§name: String仓库名(远程 URL 必须显式指定;本地路径缺省取目录名)
url: Option<String>远程 git URL(Some 时 local 必须为 None)
local: Option<PathBuf>本地仓库路径(Some 时 url 必须为 None)
commit: Option<String>评测基准 commit(Some 时执行前 checkout 钉死——CodeWikiBench/ knowing 类评测要求 commit 级可复现;None 用 HEAD)
Trait Implementations§
impl Eq for RepoEntry
impl StructuralPartialEq for RepoEntry
Auto Trait Implementations§
impl Freeze for RepoEntry
impl RefUnwindSafe for RepoEntry
impl Send for RepoEntry
impl Sync for RepoEntry
impl Unpin for RepoEntry
impl UnsafeUnpin for RepoEntry
impl UnwindSafe for RepoEntry
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,
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<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> 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> ⓘ
Converts
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> ⓘ
Converts
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 more