Struct scylladb_parse::Replication
source · [−]pub struct Replication {
pub class: LitStr,
pub replication_factor: Option<i32>,
pub datacenters: BTreeMap<LitStr, i32>,
}Fields
class: LitStrreplication_factor: Option<i32>datacenters: BTreeMap<LitStr, i32>Implementations
Trait Implementations
sourceimpl Clone for Replication
impl Clone for Replication
sourcefn clone(&self) -> Replication
fn clone(&self) -> Replication
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl<'a> CustomToTokens<'a> for Replication
impl<'a> CustomToTokens<'a> for Replication
fn to_tokens(&'a self, tokens: &mut TokenStream)
sourceimpl Debug for Replication
impl Debug for Replication
sourceimpl Default for Replication
impl Default for Replication
sourceimpl Display for Replication
impl Display for Replication
sourceimpl From<i32> for Replication
impl From<i32> for Replication
sourceimpl FromStr for Replication
impl FromStr for Replication
sourceimpl Parse for Replication
impl Parse for Replication
type Output = Replication
fn parse(s: &mut StatementStream<'_>) -> Result<Self::Output>
sourceimpl PartialEq<Replication> for Replication
impl PartialEq<Replication> for Replication
sourcefn eq(&self, other: &Replication) -> bool
fn eq(&self, other: &Replication) -> bool
This method tests for self and other values to be equal, and is used
by ==. Read more
sourcefn ne(&self, other: &Replication) -> bool
fn ne(&self, other: &Replication) -> bool
This method tests for !=.
sourceimpl ToTokens for Replication
impl ToTokens for Replication
sourcefn to_tokens(&self, tokens: &mut TokenStream)
fn to_tokens(&self, tokens: &mut TokenStream)
Write self to the given TokenStream. Read more
sourcefn to_token_stream(&self) -> TokenStream
fn to_token_stream(&self) -> TokenStream
Convert self directly into a TokenStream object. Read more
sourcefn into_token_stream(self) -> TokenStream
fn into_token_stream(self) -> TokenStream
Convert self directly into a TokenStream object. Read more
sourceimpl TryFrom<TaggedReplication> for Replication
impl TryFrom<TaggedReplication> for Replication
impl Eq for Replication
impl StructuralEq for Replication
impl StructuralPartialEq for Replication
Auto Trait Implementations
impl RefUnwindSafe for Replication
impl Send for Replication
impl Sync for Replication
impl Unpin for Replication
impl UnwindSafe for Replication
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more