pub enum Repo {
Local {},
Meta {},
Repo {
repo: String,
rev: String,
hooks: Vec<Hook>,
},
}Expand description
A repository, i.e. where to get one or more hooks from.
This concept is slightly overloaded in pre-commit, as there are
two special sentinel “repository” types, local, and meta, which
have a different shape than a normal Git repository.
Variants§
Local
A special ‘local’ repository, for hooks defined within the current Git repository.
Meta
A special ‘meta’ repository, for hooks defined by pre-commit itself.
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
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