pub struct PageCheckboxProperty {
pub id: Option<String>,
pub checkbox: bool,
}
Expand description
https://developers.notion.com/reference/page-property-values#checkbox
$.['*'].id
: An underlying identifier for the property.id
remains constant when the property name changes.$.['*'].type
: Always"checkbox"
$.['*'].checkbox
: Whether the checkbox is checked (true
) or unchecked (false
).
Note: The ['*']
part represents the column name you set when creating the database.
Example checkbox page property value
{
"Task completed": {
"id": "ZI%40W",
"type": "checkbox",
"checkbox": true
}
}
Fields§
§id: Option<String>
An underlying identifier for the property.
id
remains constant when the property name changes.
checkbox: bool
Whether the checkbox is checked (true
) or unchecked (false
).
Implementations§
Source§impl PageCheckboxProperty
impl PageCheckboxProperty
Trait Implementations§
Source§impl Clone for PageCheckboxProperty
impl Clone for PageCheckboxProperty
Source§fn clone(&self) -> PageCheckboxProperty
fn clone(&self) -> PageCheckboxProperty
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 PageCheckboxProperty
impl Debug for PageCheckboxProperty
Source§impl Default for PageCheckboxProperty
impl Default for PageCheckboxProperty
Source§fn default() -> PageCheckboxProperty
fn default() -> PageCheckboxProperty
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for PageCheckboxProperty
impl<'de> Deserialize<'de> for PageCheckboxProperty
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 PageCheckboxProperty
impl Display for PageCheckboxProperty
Source§impl From<bool> for PageCheckboxProperty
impl From<bool> for PageCheckboxProperty
Source§impl PartialEq for PageCheckboxProperty
impl PartialEq for PageCheckboxProperty
Source§impl Serialize for PageCheckboxProperty
impl Serialize for PageCheckboxProperty
impl Eq for PageCheckboxProperty
impl StructuralPartialEq for PageCheckboxProperty
Auto Trait Implementations§
impl Freeze for PageCheckboxProperty
impl RefUnwindSafe for PageCheckboxProperty
impl Send for PageCheckboxProperty
impl Sync for PageCheckboxProperty
impl Unpin for PageCheckboxProperty
impl UnwindSafe for PageCheckboxProperty
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