pub struct IndexSnapshot {
pub columns: Vec<String>,
pub unique: bool,
}Expand description
Snapshot of a secondary index defined on a table.
Fields§
§columns: Vec<String>Names of the columns covered by the index, in index order.
unique: boolWhether the index enforces uniqueness across the covered columns.
Trait Implementations§
Source§impl CandidType for IndexSnapshot
impl CandidType for IndexSnapshot
Source§impl Clone for IndexSnapshot
impl Clone for IndexSnapshot
Source§fn clone(&self) -> IndexSnapshot
fn clone(&self) -> IndexSnapshot
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for IndexSnapshot
impl Debug for IndexSnapshot
Source§impl<'de> Deserialize<'de> for IndexSnapshot
impl<'de> Deserialize<'de> for IndexSnapshot
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<IndexSnapshot, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<IndexSnapshot, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Encode for IndexSnapshot
impl Encode for IndexSnapshot
Source§fn decode(data: Cow<'_, [u8]>) -> Result<IndexSnapshot, MemoryError>where
IndexSnapshot: Sized,
fn decode(data: Cow<'_, [u8]>) -> Result<IndexSnapshot, MemoryError>where
IndexSnapshot: Sized,
Decodes the data type from a slice of bytes.
Source§impl PartialEq for IndexSnapshot
impl PartialEq for IndexSnapshot
Source§impl Serialize for IndexSnapshot
impl Serialize for IndexSnapshot
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl Eq for IndexSnapshot
impl StructuralPartialEq for IndexSnapshot
Auto Trait Implementations§
impl Freeze for IndexSnapshot
impl RefUnwindSafe for IndexSnapshot
impl Send for IndexSnapshot
impl Sync for IndexSnapshot
impl Unpin for IndexSnapshot
impl UnsafeUnpin for IndexSnapshot
impl UnwindSafe for IndexSnapshot
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