pub struct RefNameOptions {
pub allow_onelevel: bool,
pub refspec_pattern: bool,
pub normalize: bool,
}Expand description
Options controlling validation.
Fields§
§allow_onelevel: boolAllow a single-level refname (no / separator required).
refspec_pattern: boolAllow exactly one * wildcard anywhere in the name.
normalize: boolBefore validating, collapse consecutive slashes and strip a leading
slash. When the resulting name is valid, check_refname_format
returns it.
Trait Implementations§
Source§impl Clone for RefNameOptions
impl Clone for RefNameOptions
Source§fn clone(&self) -> RefNameOptions
fn clone(&self) -> RefNameOptions
Returns a duplicate 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 Debug for RefNameOptions
impl Debug for RefNameOptions
Source§impl Default for RefNameOptions
impl Default for RefNameOptions
Source§fn default() -> RefNameOptions
fn default() -> RefNameOptions
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for RefNameOptions
impl RefUnwindSafe for RefNameOptions
impl Send for RefNameOptions
impl Sync for RefNameOptions
impl Unpin for RefNameOptions
impl UnsafeUnpin for RefNameOptions
impl UnwindSafe for RefNameOptions
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