Struct bookkeeper_client::CreateOptions
source · #[non_exhaustive]pub struct CreateOptions { /* private fields */ }Expand description
Options to create ledger.
Implementations§
source§impl CreateOptions
impl CreateOptions
sourcepub fn new(
ensemble_size: usize,
write_quorum_size: usize,
ack_quorum_size: usize
) -> CreateOptions
pub fn new( ensemble_size: usize, write_quorum_size: usize, ack_quorum_size: usize ) -> CreateOptions
Constructs options for ledger creation.
pub fn digest(self, digest_type: DigestType, password: Option<Vec<u8>>) -> Self
pub fn ledger_id(self, ledger_id: LedgerId) -> Self
pub fn custom_metadata(self, metadata: HashMap<String, Vec<u8>>) -> Self
pub fn deferred_sync(self) -> Self
Trait Implementations§
source§impl Clone for CreateOptions
impl Clone for CreateOptions
source§fn clone(&self) -> CreateOptions
fn clone(&self) -> CreateOptions
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 moreAuto Trait Implementations§
impl RefUnwindSafe for CreateOptions
impl Send for CreateOptions
impl Sync for CreateOptions
impl Unpin for CreateOptions
impl UnwindSafe for CreateOptions
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> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request