Struct git_checks::checks::LfsPointer [−][src]
pub struct LfsPointer;
A check verifies that files meant to be under LFS control are valid LFS pointers.
Methods
impl LfsPointer[src]
impl LfsPointerpub fn new() -> Self[src]
pub fn new() -> SelfCreate a check verifies that files meant to be under LFS control are valid LFS pointers.
This is based on the filter attribute for a file being set to lfs.
Trait Implementations
impl Debug for LfsPointer[src]
impl Debug for LfsPointerfn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl Default for LfsPointer[src]
impl Default for LfsPointerfn default() -> LfsPointer[src]
fn default() -> LfsPointerReturns the "default value" for a type. Read more
impl Clone for LfsPointer[src]
impl Clone for LfsPointerfn clone(&self) -> LfsPointer[src]
fn clone(&self) -> LfsPointerReturns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
fn clone_from(&mut self, source: &Self)1.0.0
[src]Performs copy-assignment from source. Read more
impl Copy for LfsPointer[src]
impl Copy for LfsPointerimpl ContentCheck for LfsPointer[src]
impl ContentCheck for LfsPointerfn name(&self) -> &str[src]
fn name(&self) -> &strThe name of the check.
fn check(&self, ctx: &CheckGitContext, content: &Content) -> Result<CheckResult>[src]
fn check(&self, ctx: &CheckGitContext, content: &Content) -> Result<CheckResult>Run the check.
Auto Trait Implementations
impl Send for LfsPointer
impl Send for LfsPointerimpl Sync for LfsPointer
impl Sync for LfsPointer