pub struct PageFormulaProperty {
pub id: Option<String>,
pub formula: Formula,
}
Expand description
https://developers.notion.com/reference/page-property-values#formula
Formula property value objects represent the result of evaluating a formula described in the database’s properties.
$.['*'].id
: An underlying identifier for the property.id
remains constant when the property name changes.$.['*'].type
: Always"formula"
$.['*'].formula.type
: A string indicating the data type of the result of the formula. Possible type values are:boolean
date
number
string
Note: The ['*']
part represents the column name you set when creating the database.
Example formula page property value
{
"Formula": {
"type": "formula",
"id": "W~%5BW",
"formula": { "type": "string", "string": "My Title" }
}
}
Fields§
§id: Option<String>
An underlying identifier for the property.
id
remains constant when the property name changes.
formula: Formula
Formula property value objects represent the result of evaluating a formula described in the database’s properties.
Implementations§
Source§impl PageFormulaProperty
impl PageFormulaProperty
Trait Implementations§
Source§impl Clone for PageFormulaProperty
impl Clone for PageFormulaProperty
Source§fn clone(&self) -> PageFormulaProperty
fn clone(&self) -> PageFormulaProperty
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 PageFormulaProperty
impl Debug for PageFormulaProperty
Source§impl<'de> Deserialize<'de> for PageFormulaProperty
impl<'de> Deserialize<'de> for PageFormulaProperty
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 PageFormulaProperty
impl Display for PageFormulaProperty
Source§impl PartialEq for PageFormulaProperty
impl PartialEq for PageFormulaProperty
Source§impl Serialize for PageFormulaProperty
impl Serialize for PageFormulaProperty
impl StructuralPartialEq for PageFormulaProperty
Auto Trait Implementations§
impl Freeze for PageFormulaProperty
impl RefUnwindSafe for PageFormulaProperty
impl Send for PageFormulaProperty
impl Sync for PageFormulaProperty
impl Unpin for PageFormulaProperty
impl UnwindSafe for PageFormulaProperty
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