Struct notion_wasi::models::Database
source · pub struct Database {
pub id: DatabaseId,
pub created_time: DateTime<Utc>,
pub last_edited_time: DateTime<Utc>,
pub title: Vec<RichText>,
pub properties: HashMap<String, PropertyConfiguration>,
}
Expand description
Represents a Notion Database See https://developers.notion.com/reference/database
Fields§
§id: DatabaseId
Unique identifier for the database.
created_time: DateTime<Utc>
Date and time when this database was created.
last_edited_time: DateTime<Utc>
Date and time when this database was updated.
title: Vec<RichText>
Name of the database as it appears in Notion.
properties: HashMap<String, PropertyConfiguration>
Schema of properties for the database as they appear in Notion.
Implementations§
Trait Implementations§
source§impl AsIdentifier<DatabaseId> for Database
impl AsIdentifier<DatabaseId> for Database
fn as_id(&self) -> &DatabaseId
source§impl<'de> Deserialize<'de> for Database
impl<'de> Deserialize<'de> for Database
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<Database> for Database
impl PartialEq<Database> for Database
impl Eq for Database
impl StructuralEq for Database
impl StructuralPartialEq for Database
Auto Trait Implementations§
impl RefUnwindSafe for Database
impl Send for Database
impl Sync for Database
impl Unpin for Database
impl UnwindSafe for Database
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
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.