Struct mls_rs::group::mls_rules::CommitOptions
source · #[non_exhaustive]pub struct CommitOptions {
pub path_required: bool,
pub ratchet_tree_extension: bool,
pub single_welcome_message: bool,
pub allow_external_commit: 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
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
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)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