Enum notion_client::objects::database::DatabaseProperty
source · pub enum DatabaseProperty {
Show 20 variants
Checkbox {
id: Option<String>,
name: Option<String>,
checkbox: HashMap<(), ()>,
},
CreatedBy {
id: Option<String>,
name: Option<String>,
created_by: HashMap<(), ()>,
},
CreatedTime {
id: Option<String>,
name: Option<String>,
created_time: HashMap<(), ()>,
},
Date {
id: Option<String>,
name: Option<String>,
date: HashMap<(), ()>,
},
Email {
id: Option<String>,
name: Option<String>,
email: HashMap<(), ()>,
},
Files {
id: Option<String>,
name: Option<String>,
files: HashMap<(), ()>,
},
Formula {
id: Option<String>,
name: Option<String>,
formula: FormulaPropertyValue,
},
LastEditedBy {
id: Option<String>,
name: Option<String>,
last_edited_by: HashMap<(), ()>,
},
LastEditedTime {
id: Option<String>,
name: Option<String>,
last_edited_time: HashMap<(), ()>,
},
MultiSelect {
id: Option<String>,
name: Option<String>,
multi_select: SelectPropertyValue,
},
Number {
id: Option<String>,
name: Option<String>,
number: NumberPropertyValue,
},
People {
id: Option<String>,
name: Option<String>,
people: HashMap<(), ()>,
},
PhoneNumber {
id: Option<String>,
name: Option<String>,
phone_number: HashMap<(), ()>,
},
Relation {
id: Option<String>,
name: Option<String>,
relation: RelationPropertyValue,
},
RichText {
id: Option<String>,
name: Option<String>,
rich_text: HashMap<(), ()>,
},
Rollup {
id: Option<String>,
name: Option<String>,
rollup: RollupPropertyValue,
},
Select {
id: Option<String>,
name: Option<String>,
select: SelectPropertyValue,
},
Status {
id: Option<String>,
name: Option<String>,
status: StatusPropertyValue,
},
Title {
id: Option<String>,
name: Option<String>,
title: HashMap<(), ()>,
},
Url {
id: Option<String>,
name: Option<String>,
url: HashMap<(), ()>,
},
}
Variants§
Checkbox
CreatedBy
CreatedTime
Date
Files
Formula
LastEditedBy
LastEditedTime
MultiSelect
Number
People
PhoneNumber
Relation
RichText
Rollup
Select
Status
Title
Url
Trait Implementations§
source§impl Clone for DatabaseProperty
impl Clone for DatabaseProperty
source§fn clone(&self) -> DatabaseProperty
fn clone(&self) -> DatabaseProperty
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 DatabaseProperty
impl Debug for DatabaseProperty
source§impl<'de> Deserialize<'de> for DatabaseProperty
impl<'de> Deserialize<'de> for DatabaseProperty
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 for DatabaseProperty
impl PartialEq for DatabaseProperty
source§fn eq(&self, other: &DatabaseProperty) -> bool
fn eq(&self, other: &DatabaseProperty) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for DatabaseProperty
impl Serialize for DatabaseProperty
impl Eq for DatabaseProperty
impl StructuralPartialEq for DatabaseProperty
Auto Trait Implementations§
impl RefUnwindSafe for DatabaseProperty
impl Send for DatabaseProperty
impl Sync for DatabaseProperty
impl Unpin for DatabaseProperty
impl UnwindSafe for DatabaseProperty
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
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§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 Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.