pub enum SshOperation {
Upload,
Download,
}Expand description
git-lfs-authenticate <path> <op> operation argument. Wire form is
lowercase upload or download.
Variants§
Upload
Auth scope needed to push objects to the server.
Download
Auth scope needed to fetch objects from the server.
Implementations§
Source§impl SshOperation
impl SshOperation
Sourcepub fn from_http_method(method: &Method) -> Self
pub fn from_http_method(method: &Method) -> Self
Default mirrors upstream’s endpointOperation: GET/HEAD →
download, anything else → upload. Used as the fallback when a
caller doesn’t pass an explicit operation.
Trait Implementations§
Source§impl Clone for SshOperation
impl Clone for SshOperation
Source§fn clone(&self) -> SshOperation
fn clone(&self) -> SshOperation
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 SshOperation
impl Debug for SshOperation
Source§impl Hash for SshOperation
impl Hash for SshOperation
Source§impl PartialEq for SshOperation
impl PartialEq for SshOperation
Source§fn eq(&self, other: &SshOperation) -> bool
fn eq(&self, other: &SshOperation) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for SshOperation
impl Eq for SshOperation
impl StructuralPartialEq for SshOperation
Auto Trait Implementations§
impl Freeze for SshOperation
impl RefUnwindSafe for SshOperation
impl Send for SshOperation
impl Sync for SshOperation
impl Unpin for SshOperation
impl UnsafeUnpin for SshOperation
impl UnwindSafe for SshOperation
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.