#[non_exhaustive]pub struct CommitOptions {
pub path_required: bool,
pub ratchet_tree_extension: bool,
pub single_welcome_message: bool,
pub allow_external_commit: bool,
pub always_out_of_band_ratchet_tree: bool,
}
Expand description
Options controlling commit generation
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.path_required: bool
§ratchet_tree_extension: bool
§single_welcome_message: bool
§allow_external_commit: bool
§always_out_of_band_ratchet_tree: bool
Include the ratchet tree out of band and not in the external group info, regardless of the presence of the ratchet tree extension (doesn’t affect commits/welcome).
Implementations§
Source§impl CommitOptions
impl CommitOptions
pub fn new() -> Self
pub fn with_path_required(self, path_required: bool) -> Self
pub fn with_ratchet_tree_extension(self, ratchet_tree_extension: bool) -> Self
pub fn with_single_welcome_message(self, single_welcome_message: bool) -> Self
pub fn with_allow_external_commit(self, allow_external_commit: bool) -> Self
pub fn with_always_out_of_band_ratchet_tree( self, always_out_of_band_ratchet_tree: bool, ) -> Self
Trait Implementations§
Source§impl Clone for CommitOptions
impl Clone for CommitOptions
Source§fn clone(&self) -> CommitOptions
fn clone(&self) -> CommitOptions
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 CommitOptions
impl Debug for CommitOptions
Source§impl Default for CommitOptions
impl Default for CommitOptions
Source§impl PartialEq for CommitOptions
impl PartialEq for CommitOptions
impl Copy for CommitOptions
impl Eq for CommitOptions
impl StructuralPartialEq for CommitOptions
Auto Trait Implementations§
impl Freeze for CommitOptions
impl RefUnwindSafe for CommitOptions
impl Send for CommitOptions
impl Sync for CommitOptions
impl Unpin for CommitOptions
impl UnwindSafe for CommitOptions
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<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more