Enum notion_wasi::models::properties::PropertyValue
source · pub enum PropertyValue {
Show 20 variants
Title {
id: PropertyId,
title: Vec<RichText>,
},
Text {
id: PropertyId,
rich_text: Vec<RichText>,
},
Number {
id: PropertyId,
number: Option<Number>,
},
Select {
id: PropertyId,
select: Option<SelectedValue>,
},
Status {
id: PropertyId,
status: Option<SelectedValue>,
},
MultiSelect {
id: PropertyId,
multi_select: Option<Vec<SelectedValue>>,
},
Date {
id: PropertyId,
date: Option<DateValue>,
},
Formula {
id: PropertyId,
formula: FormulaResultValue,
},
Relation {
id: PropertyId,
relation: Option<Vec<RelationValue>>,
},
Rollup {
id: PropertyId,
rollup: Option<RollupValue>,
},
People {
id: PropertyId,
people: Vec<User>,
},
Files {
id: PropertyId,
files: Option<Vec<FileReference>>,
},
Checkbox {
id: PropertyId,
checkbox: bool,
},
Url {
id: PropertyId,
url: Option<String>,
},
Email {
id: PropertyId,
email: Option<String>,
},
PhoneNumber {
id: PropertyId,
phone_number: String,
},
CreatedTime {
id: PropertyId,
created_time: DateTime<Utc>,
},
CreatedBy {
id: PropertyId,
created_by: User,
},
LastEditedTime {
id: PropertyId,
last_edited_time: DateTime<Utc>,
},
LastEditedBy {
id: PropertyId,
last_edited_by: User,
},
}Variants§
Title
Text
Number
Select
Status
MultiSelect
Date
Formula
Relation
https://developers.notion.com/reference/property-object#relation-configuration It is actually an array of relations
Rollup
People
Files
Checkbox
Url
PhoneNumber
CreatedTime
CreatedBy
LastEditedTime
LastEditedBy
Trait Implementations§
source§impl Clone for PropertyValue
impl Clone for PropertyValue
source§fn clone(&self) -> PropertyValue
fn clone(&self) -> PropertyValue
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 PropertyValue
impl Debug for PropertyValue
source§impl<'de> Deserialize<'de> for PropertyValue
impl<'de> Deserialize<'de> for PropertyValue
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<PropertyValue> for PropertyValue
impl PartialEq<PropertyValue> for PropertyValue
source§fn eq(&self, other: &PropertyValue) -> bool
fn eq(&self, other: &PropertyValue) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl Serialize for PropertyValue
impl Serialize for PropertyValue
impl Eq for PropertyValue
impl StructuralEq for PropertyValue
impl StructuralPartialEq for PropertyValue
Auto Trait Implementations§
impl RefUnwindSafe for PropertyValue
impl Send for PropertyValue
impl Sync for PropertyValue
impl Unpin for PropertyValue
impl UnwindSafe for PropertyValue
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.