pub struct GitHook {
pub name: String,
pub command: CommandConfig,
pub glob_pattern: Vec<String>,
pub description: Option<String>,
}Fields§
§name: String§command: CommandConfig§glob_pattern: Vec<String>§description: Option<String>Implementations§
Source§impl GitHook
impl GitHook
pub fn run(&self, sql_config: &SqlLiteConfig) -> Result<(), Box<dyn Error>>
pub fn apply_hook( &self, hook_type: &HookTypes, sql_config: &SqlLiteConfig, ) -> Result<(), Box<dyn Error>>
pub fn remove_hook( self, hook_type: &HookTypes, sql_config: &SqlLiteConfig, ) -> Result<(), Box<dyn Error>>
pub fn delete_hook( self, sql_config: &SqlLiteConfig, config_file: PathBuf, ) -> Result<(), Box<dyn Error>>
Trait Implementations§
Source§impl<'de> Deserialize<'de> for GitHook
impl<'de> Deserialize<'de> for GitHook
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 GitHook
impl RefUnwindSafe for GitHook
impl Send for GitHook
impl Sync for GitHook
impl Unpin for GitHook
impl UnwindSafe for GitHook
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> 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