pub enum Repo {
Meta {
repo: MetaRepo,
hooks: BTreeSet<MetaRepoHook>,
},
Local {
repo: LocalRepo,
hooks: BTreeSet<PreCommitHook>,
},
Uri {
repo: String,
rev: Option<String>,
hooks: BTreeSet<PreCommitHook>,
},
}Expand description
A pre-commit repo.
Variants§
Meta
Hooks for checking the pre-commit configuration itself. https://pre-commit.com/#meta-hooks
Local
Hooks for the local repo https://pre-commit.com/#repository-local-hooks
Fields
§
hooks: BTreeSet<PreCommitHook>A list of local hooks https://pre-commit.com/#2-add-a-pre-commit-configuration
Uri
A remote repo
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Repo
impl<'de> Deserialize<'de> for Repo
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 Ord for Repo
impl Ord for Repo
Source§impl PartialOrd for Repo
impl PartialOrd for Repo
impl Eq for Repo
impl StructuralPartialEq for Repo
Auto Trait Implementations§
impl Freeze for Repo
impl RefUnwindSafe for Repo
impl Send for Repo
impl Sync for Repo
impl Unpin for Repo
impl UnsafeUnpin for Repo
impl UnwindSafe for Repo
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> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
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.