Struct scylladb_parse::PrimaryKey
source · [−]pub struct PrimaryKey {
pub partition_key: PartitionKey,
pub clustering_columns: Option<Vec<Name>>,
}Fields
partition_key: PartitionKeyclustering_columns: Option<Vec<Name>>Implementations
sourceimpl PrimaryKey
impl PrimaryKey
pub fn partition_key(partition_key: impl Into<PartitionKey>) -> Self
pub fn clustering_columns(
self,
clustering_columns: Vec<impl Into<Name>>
) -> Self
Trait Implementations
sourceimpl Clone for PrimaryKey
impl Clone for PrimaryKey
sourcefn clone(&self) -> PrimaryKey
fn clone(&self) -> PrimaryKey
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 PrimaryKey
impl<'a> CustomToTokens<'a> for PrimaryKey
fn to_tokens(&'a self, tokens: &mut TokenStream)
sourceimpl Debug for PrimaryKey
impl Debug for PrimaryKey
sourceimpl Display for PrimaryKey
impl Display for PrimaryKey
sourceimpl FromStr for PrimaryKey
impl FromStr for PrimaryKey
sourceimpl Parse for PrimaryKey
impl Parse for PrimaryKey
type Output = PrimaryKey
fn parse(s: &mut StatementStream<'_>) -> Result<Self>
sourceimpl PartialEq<PrimaryKey> for PrimaryKey
impl PartialEq<PrimaryKey> for PrimaryKey
sourcefn eq(&self, other: &PrimaryKey) -> bool
fn eq(&self, other: &PrimaryKey) -> bool
This method tests for self and other values to be equal, and is used
by ==. Read more
sourcefn ne(&self, other: &PrimaryKey) -> bool
fn ne(&self, other: &PrimaryKey) -> bool
This method tests for !=.
sourceimpl ToTokens for PrimaryKey
impl ToTokens for PrimaryKey
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
impl Eq for PrimaryKey
impl StructuralEq for PrimaryKey
impl StructuralPartialEq for PrimaryKey
Auto Trait Implementations
impl RefUnwindSafe for PrimaryKey
impl Send for PrimaryKey
impl Sync for PrimaryKey
impl Unpin for PrimaryKey
impl UnwindSafe for PrimaryKey
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