pub struct PrimaryKey {
pub partition_key: PartitionKey,
pub clustering_columns: Option<Vec<Name>>,
}
Fields§
§partition_key: PartitionKey
§clustering_columns: Option<Vec<Name>>
Implementations§
Source§impl 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§
Source§impl Clone for PrimaryKey
impl Clone for PrimaryKey
Source§fn clone(&self) -> PrimaryKey
fn clone(&self) -> PrimaryKey
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 PrimaryKey
impl<'a> CustomToTokens<'a> for PrimaryKey
Source§impl Debug for PrimaryKey
impl Debug for PrimaryKey
Source§impl Display for PrimaryKey
impl Display for PrimaryKey
Source§impl FromStr for PrimaryKey
impl FromStr for PrimaryKey
Source§impl Parse for PrimaryKey
impl Parse for PrimaryKey
type Output = PrimaryKey
fn parse(s: &mut StatementStream<'_>) -> Result<Self>
Source§impl PartialEq for PrimaryKey
impl PartialEq for PrimaryKey
Source§impl ToTokens for PrimaryKey
impl ToTokens for PrimaryKey
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,
impl Eq for PrimaryKey
impl StructuralPartialEq for PrimaryKey
Auto Trait Implementations§
impl Freeze for PrimaryKey
impl RefUnwindSafe for PrimaryKey
impl Send for PrimaryKey
impl Sync for PrimaryKey
impl Unpin for PrimaryKey
impl UnwindSafe for PrimaryKey
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