Struct tarantool_rs::schema::SpaceMetadata
source · pub struct SpaceMetadata { /* private fields */ }
Expand description
Space metadata from with its indices metadata from system views.
Implementations§
source§impl SpaceMetadata
impl SpaceMetadata
sourcepub async fn load_by_id(
conn: impl ConnectionLike,
id: u32
) -> Result<Option<Self>, Error>
pub async fn load_by_id( conn: impl ConnectionLike, id: u32 ) -> Result<Option<Self>, Error>
Load metadata of single space by its id.
sourcepub async fn load_by_name(
conn: impl ConnectionLike,
name: &str
) -> Result<Option<Self>, Error>
pub async fn load_by_name( conn: impl ConnectionLike, name: &str ) -> Result<Option<Self>, Error>
Load metadata of single space by its name.
sourcepub fn indices(&self) -> &UniqueIdNameMap<IndexMetadata>
pub fn indices(&self) -> &UniqueIdNameMap<IndexMetadata>
Returns map of idices in this space.
Trait Implementations§
source§impl Clone for SpaceMetadata
impl Clone for SpaceMetadata
source§fn clone(&self) -> SpaceMetadata
fn clone(&self) -> SpaceMetadata
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 SpaceMetadata
impl Debug for SpaceMetadata
source§impl<'de> Deserialize<'de> for SpaceMetadata
impl<'de> Deserialize<'de> for SpaceMetadata
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 RefUnwindSafe for SpaceMetadata
impl Send for SpaceMetadata
impl Sync for SpaceMetadata
impl Unpin for SpaceMetadata
impl UnwindSafe for SpaceMetadata
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