Struct bonsaidb_core::schema::CollectionSummary
source · pub struct CollectionSummary {
pub name: CollectionName,
pub primary_key: KeyDescription,
/* private fields */
}
Expand description
A summary of a Collection
.
Fields§
§name: CollectionName
The name of the Collection
this is a summary of.
primary_key: KeyDescription
The description of Collection::PrimaryKey
.
Implementations§
source§impl CollectionSummary
impl CollectionSummary
sourcepub fn view(&self, name: &ViewName) -> Option<&ViewSummary>
pub fn view(&self, name: &ViewName) -> Option<&ViewSummary>
Returns the summary of the named view, if it is contained in this collection.
sourcepub fn views(&self) -> impl Iterator<Item = &ViewSummary>
pub fn views(&self) -> impl Iterator<Item = &ViewSummary>
Returns an iterator over all summaries of views in this collection.
Trait Implementations§
source§impl Clone for CollectionSummary
impl Clone for CollectionSummary
source§fn clone(&self) -> CollectionSummary
fn clone(&self) -> CollectionSummary
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 CollectionSummary
impl Debug for CollectionSummary
source§impl<'de> Deserialize<'de> for CollectionSummary
impl<'de> Deserialize<'de> for CollectionSummary
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
source§impl PartialEq<CollectionSummary> for CollectionSummary
impl PartialEq<CollectionSummary> for CollectionSummary
source§fn eq(&self, other: &CollectionSummary) -> bool
fn eq(&self, other: &CollectionSummary) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.