Struct git_checks::checks::CheckSize
[−]
[src]
pub struct CheckSize { /* fields omitted */ }
Checks that files committed to the tree do not exceed a specified size.
Methods
impl CheckSize
[src]
fn new(max_size: usize) -> Self
[src]
Create a new check to check for size with the given default size.
The check can be configured using the hooks-max-size
attribute to change the maximum size
allowed for specific files.
Trait Implementations
impl Debug for CheckSize
[src]
impl Clone for CheckSize
[src]
fn clone(&self) -> CheckSize
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Copy for CheckSize
[src]
impl ContentCheck for CheckSize
[src]
fn name(&self) -> &str
[src]
The name of the check.
fn check(&self, ctx: &CheckGitContext, content: &Content) -> Result<CheckResult>
[src]
Run the check.