pub struct PageStatusProperty {
pub id: Option<String>,
pub status: Select,
}
Expand description
https://developers.notion.com/reference/page-property-values#status
$.['*'].id
: An underlying identifier for the property.id
remains constant when the property name changes.$.['*'].type
: Always"status"
$.['*'].status
: Select object
Note: The ['*']
part represents the column name you set when creating the database.
Example status page property value
{
"Status": {
"type": "status",
"id": "xx%7Cd",
"status": {
"id": "4a1accbf-6716-4cf2-9034-5877581fc5f6",
"name": "Not started",
"color": "default"
}
}
}
Fields§
§id: Option<String>
An underlying identifier for the property.
id
remains constant when the property name changes.
status: Select
Select object
Implementations§
Trait Implementations§
Source§impl Clone for PageStatusProperty
impl Clone for PageStatusProperty
Source§fn clone(&self) -> PageStatusProperty
fn clone(&self) -> PageStatusProperty
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 PageStatusProperty
impl Debug for PageStatusProperty
Source§impl Default for PageStatusProperty
impl Default for PageStatusProperty
Source§fn default() -> PageStatusProperty
fn default() -> PageStatusProperty
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for PageStatusProperty
impl<'de> Deserialize<'de> for PageStatusProperty
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 PageStatusProperty
impl Display for PageStatusProperty
Source§impl PartialEq for PageStatusProperty
impl PartialEq for PageStatusProperty
Source§impl Serialize for PageStatusProperty
impl Serialize for PageStatusProperty
impl StructuralPartialEq for PageStatusProperty
Auto Trait Implementations§
impl Freeze for PageStatusProperty
impl RefUnwindSafe for PageStatusProperty
impl Send for PageStatusProperty
impl Sync for PageStatusProperty
impl Unpin for PageStatusProperty
impl UnwindSafe for PageStatusProperty
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