#[non_exhaustive]pub struct Options {
pub primary_key: Option<Cow<'static, str>>,
pub durability: Option<Durability>,
pub shards: Option<u8>,
pub replicas: Option<Replicas>,
}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.primary_key: Option<Cow<'static, str>>§durability: Option<Durability>§shards: Option<u8>§replicas: Option<Replicas>Implementations§
Source§impl Options
impl Options
pub fn new() -> Self
pub fn primary_key<T>(self, primary_key: T) -> Selfwhere
T: StaticString,
pub fn durability(self, durability: Durability) -> Self
pub fn shards(self, shards: u8) -> Self
pub fn replicas(self, replicas: Replicas) -> Self
Trait Implementations§
impl StructuralPartialEq for Options
Auto Trait Implementations§
impl Freeze for Options
impl RefUnwindSafe for Options
impl Send for Options
impl Sync for Options
impl Unpin for Options
impl UnwindSafe for Options
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