pub struct Replication {
pub class: LitStr,
pub replication_factor: Option<i32>,
pub datacenters: BTreeMap<LitStr, i32>,
}
Fields§
§class: LitStr
§replication_factor: Option<i32>
§datacenters: BTreeMap<LitStr, i32>
Implementations§
Trait Implementations§
Source§impl Clone for Replication
impl Clone for Replication
Source§fn clone(&self) -> Replication
fn clone(&self) -> Replication
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl<'a> CustomToTokens<'a> for Replication
impl<'a> CustomToTokens<'a> for Replication
Source§impl Debug for Replication
impl Debug for Replication
Source§impl Default for Replication
impl Default for Replication
Source§impl Display for Replication
impl Display for Replication
Source§impl From<i32> for Replication
impl From<i32> for Replication
Source§impl FromStr for Replication
impl FromStr for Replication
Source§impl Parse for Replication
impl Parse for Replication
type Output = Replication
fn parse(s: &mut StatementStream<'_>) -> Result<Self::Output>
Source§impl PartialEq for Replication
impl PartialEq for Replication
Source§impl ToTokens for Replication
impl ToTokens for Replication
Source§fn to_token_stream(&self) -> TokenStream
fn to_token_stream(&self) -> TokenStream
Source§fn into_token_stream(self) -> TokenStreamwhere
Self: Sized,
fn into_token_stream(self) -> TokenStreamwhere
Self: Sized,
Source§impl TryFrom<TaggedReplication> for Replication
impl TryFrom<TaggedReplication> for Replication
impl Eq for Replication
impl StructuralPartialEq for Replication
Auto Trait Implementations§
impl Freeze for Replication
impl RefUnwindSafe for Replication
impl Send for Replication
impl Sync for Replication
impl Unpin for Replication
impl UnwindSafe for Replication
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