pub struct PageSelectProperty {
pub id: Option<String>,
pub select: Option<Select>,
}
Expand description
https://developers.notion.com/reference/page-property-values#select
$.['*'].id
: An underlying identifier for the property.id
remains constant when the property name changes.$.['*'].type
: Always"select"
$.['*'].select
: Select object (optional)
Note: The ['*']
part represents the column name you set when creating the database.
Example select page property value
{
"Select": {
"type": "select",
"id": "chOy",
"select": {
"id": "eede87ce-52db-4b16-9931-2bc40687d697",
"name": "TODO",
"color": "default"
}
}
}
Fields§
§id: Option<String>
An underlying identifier for the property.
id
remains constant when the property name changes.
select: Option<Select>
Select object (optional)
Implementations§
Trait Implementations§
Source§impl Clone for PageSelectProperty
impl Clone for PageSelectProperty
Source§fn clone(&self) -> PageSelectProperty
fn clone(&self) -> PageSelectProperty
Returns a duplicate 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 PageSelectProperty
impl Debug for PageSelectProperty
Source§impl Default for PageSelectProperty
impl Default for PageSelectProperty
Source§fn default() -> PageSelectProperty
fn default() -> PageSelectProperty
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for PageSelectProperty
impl<'de> Deserialize<'de> for PageSelectProperty
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 Display for PageSelectProperty
impl Display for PageSelectProperty
Source§impl<T> From<T> for PageSelectProperty
impl<T> From<T> for PageSelectProperty
Source§impl PartialEq for PageSelectProperty
impl PartialEq for PageSelectProperty
Source§impl Serialize for PageSelectProperty
impl Serialize for PageSelectProperty
impl StructuralPartialEq for PageSelectProperty
Auto Trait Implementations§
impl Freeze for PageSelectProperty
impl RefUnwindSafe for PageSelectProperty
impl Send for PageSelectProperty
impl Sync for PageSelectProperty
impl Unpin for PageSelectProperty
impl UnwindSafe for PageSelectProperty
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