pub struct IndexMetadata { /* private fields */ }
Expand description
Index metadata from system view.
Implementations§
Source§impl IndexMetadata
impl IndexMetadata
Sourcepub async fn load_by_space_id(
conn: impl ExecutorExt,
space_id: u32,
) -> Result<Vec<Self>>
pub async fn load_by_space_id( conn: impl ExecutorExt, space_id: u32, ) -> Result<Vec<Self>>
Load list of indices of single space.
Sourcepub fn is_primary(&self) -> bool
pub fn is_primary(&self) -> bool
Returns whether this index is primary or not.
Trait Implementations§
Source§impl Clone for IndexMetadata
impl Clone for IndexMetadata
Source§fn clone(&self) -> IndexMetadata
fn clone(&self) -> IndexMetadata
Returns a copy 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 IndexMetadata
impl Debug for IndexMetadata
Source§impl<'de> Deserialize<'de> for IndexMetadata
impl<'de> Deserialize<'de> for IndexMetadata
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for IndexMetadata
impl RefUnwindSafe for IndexMetadata
impl Send for IndexMetadata
impl Sync for IndexMetadata
impl Unpin for IndexMetadata
impl UnwindSafe for IndexMetadata
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