pub struct RejectBinaries {}
Expand description
Reject binary files.
This check detects binaries in various formats and rejects content where they are found.
Note that new formats may be detected in the future, so this check may start rejecting commits which had previously been accepted.
Implementations§
Source§impl RejectBinaries
impl RejectBinaries
Sourcepub fn builder() -> RejectBinariesBuilder
pub fn builder() -> RejectBinariesBuilder
Create a new builder.
Trait Implementations§
Source§impl Clone for RejectBinaries
impl Clone for RejectBinaries
Source§fn clone(&self) -> RejectBinaries
fn clone(&self) -> RejectBinaries
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl ContentCheck for RejectBinaries
impl ContentCheck for RejectBinaries
Source§impl Debug for RejectBinaries
impl Debug for RejectBinaries
Source§impl Default for RejectBinaries
impl Default for RejectBinaries
Source§fn default() -> RejectBinaries
fn default() -> RejectBinaries
Returns the “default value” for a type. Read more
impl Copy for RejectBinaries
Auto Trait Implementations§
impl Freeze for RejectBinaries
impl RefUnwindSafe for RejectBinaries
impl Send for RejectBinaries
impl Sync for RejectBinaries
impl Unpin for RejectBinaries
impl UnwindSafe for RejectBinaries
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> Check for Twhere
T: ContentCheck,
impl<T> Check for Twhere
T: ContentCheck,
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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