pub struct Database {Show 13 fields
pub id: DatabaseId,
pub icon: Option<FileOrEmojiObject>,
pub created_time: DateTime<Utc>,
pub last_edited_time: DateTime<Utc>,
pub created_by: UserCommon,
pub last_edited_by: UserCommon,
pub title: Vec<RichText>,
pub properties: HashMap<String, PropertyConfiguration>,
pub archived: bool,
pub is_inline: bool,
pub description: Vec<RichText>,
pub url: String,
pub parent: Parent,
}
Expand description
Represents a Notion Database See https://developers.notion.com/reference/database
Fields§
§id: DatabaseId
Unique identifier for the database.
icon: Option<FileOrEmojiObject>
§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.
created_by: UserCommon
§last_edited_by: UserCommon
§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.
archived: bool
The archived status of the database.
is_inline: bool
§description: Vec<RichText>
§url: String
§parent: Parent
Trait Implementations§
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
impl Eq for Database
impl StructuralPartialEq for Database
Auto Trait Implementations§
impl Freeze for Database
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<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.