pub enum Requirement {
Fixed(Access),
PerOperation(&'static [OperationSpec]),
}Expand description
How a row’s grant level is arrived at.
Two variants because the git-lfs exec line carries an <operation> that
stock git’s two verbs do not. Folding LFS into Requirement::Fixed would
mean picking one level for both directions: Read would let a reader upload,
Write would stop a reader fetching. Neither is the answer, and neither
failure would show up in a test that only checked some level was demanded.
Variants§
Fixed(Access)
The whole argument is the path, and the level does not vary.
PerOperation(&'static [OperationSpec])
The argument is <path> <operation>, and each accepted operation names
its own level. Anything not in this list is CommandError::UnknownOperation.
Trait Implementations§
Source§impl Clone for Requirement
impl Clone for Requirement
impl Copy for Requirement
Auto Trait Implementations§
impl Freeze for Requirement
impl RefUnwindSafe for Requirement
impl Send for Requirement
impl Sync for Requirement
impl Unpin for Requirement
impl UnsafeUnpin for Requirement
impl UnwindSafe for Requirement
Blanket Implementations§
impl<T> Allocation for T
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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