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 for PropertyValue
impl PartialEq for PropertyValue
Source§impl Serialize for PropertyValue
impl Serialize for PropertyValue
impl Eq for PropertyValue
impl StructuralPartialEq for PropertyValue
Auto Trait Implementations§
impl Freeze for PropertyValue
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<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.