Enum jj_lib::signing::SignBehavior
source · pub enum SignBehavior {
Drop,
Keep,
Own,
Force,
}
Expand description
A enum that describes if a created/rewritten commit should be signed or not.
Variants§
Drop
Drop existing signatures. This is what jj did before signing support or does now when a signing backend is not configured.
Keep
Only sign commits that were authored by self and already signed, “preserving” the signature across rewrites. This is what jj does when a signing backend is configured.
Own
Sign/re-sign commits that were authored by self and drop them for others. This is what jj does when configured to always sign.
Force
Always sign commits, regardless of who authored or signed them before.
This is what jj does on jj sign -f
.
Trait Implementations§
source§impl Clone for SignBehavior
impl Clone for SignBehavior
source§fn clone(&self) -> SignBehavior
fn clone(&self) -> SignBehavior
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 Debug for SignBehavior
impl Debug for SignBehavior
source§impl Default for SignBehavior
impl Default for SignBehavior
source§fn default() -> SignBehavior
fn default() -> SignBehavior
Returns the “default value” for a type. Read more
source§impl PartialEq for SignBehavior
impl PartialEq for SignBehavior
source§fn eq(&self, other: &SignBehavior) -> bool
fn eq(&self, other: &SignBehavior) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for SignBehavior
impl Eq for SignBehavior
impl StructuralEq for SignBehavior
impl StructuralPartialEq for SignBehavior
Auto Trait Implementations§
impl RefUnwindSafe for SignBehavior
impl Send for SignBehavior
impl Sync for SignBehavior
impl Unpin for SignBehavior
impl UnwindSafe for SignBehavior
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
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more