Enum git_repository::remote::url::scheme_permission::Allow
source · pub enum Allow {
Always,
Never,
User,
}
Available on crate features
blocking-network-client
or async-network-client
only.Expand description
All allowed values of the protocol.allow
key.
Variants§
Always
Allow use this protocol.
Never
Forbid using this protocol
User
Only supported if the GIT_PROTOCOL_FROM_USER
is unset or is set to 1
.
Implementations§
Trait Implementations§
source§impl PartialEq<Allow> for Allow
impl PartialEq<Allow> for Allow
impl Copy for Allow
impl Eq for Allow
impl StructuralEq for Allow
impl StructuralPartialEq for Allow
Auto Trait Implementations§
impl RefUnwindSafe for Allow
impl Send for Allow
impl Sync for Allow
impl Unpin for Allow
impl UnwindSafe for Allow
Blanket Implementations§
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more