Struct bonsaidb::core::schema::CollectionSummary
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§
§impl CollectionSummary
impl CollectionSummary
pub 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.
pub 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§
§impl Clone for CollectionSummary
impl Clone for CollectionSummary
§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 more§impl Debug for CollectionSummary
impl Debug for CollectionSummary
§impl<'de> Deserialize<'de> for CollectionSummary
impl<'de> Deserialize<'de> for CollectionSummary
§fn deserialize<__D>(
__deserializer: __D
) -> Result<CollectionSummary, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>( __deserializer: __D ) -> Result<CollectionSummary, <__D as Deserializer<'de>>::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
§impl PartialEq<CollectionSummary> for CollectionSummary
impl PartialEq<CollectionSummary> for CollectionSummary
§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 ==
.§impl Serialize for CollectionSummary
impl Serialize for CollectionSummary
§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 CollectionSummary
impl StructuralEq for CollectionSummary
impl StructuralPartialEq for CollectionSummary
Auto Trait Implementations§
impl RefUnwindSafe for CollectionSummary
impl Send for CollectionSummary
impl Sync for CollectionSummary
impl Unpin for CollectionSummary
impl UnwindSafe for CollectionSummary
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere T: 'a,
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
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.