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,
}
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
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
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
source§fn eq(&self, other: &CommitOptions) -> bool
fn eq(&self, other: &CommitOptions) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for CommitOptions
impl Eq for CommitOptions
impl StructuralEq for CommitOptions
impl StructuralPartialEq for CommitOptions
Auto Trait Implementations§
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
§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