pub struct PageEmailProperty {
pub id: Option<String>,
pub email: Option<String>,
}
Expand description
https://developers.notion.com/reference/page-property-values#email
$.['*'].id
: An underlying identifier for the property.id
remains constant when the property name changes.$.['*'].type
: Always `“email$.['*'].email
: A string describing an email address.
Note: The ['*']
part represents the column name you set when creating the database.
Example email page property value
{
"Email": {
"id": "rXuf",
"type": "email",
"email": "hi@example.com"
}
}
When the value is not set:
{
"Email": {
"id": "rXuf",
"type": "email",
"email": null
}
}
Fields§
§id: Option<String>
An underlying identifier for the property.
id
remains constant when the property name changes.
email: Option<String>
A string describing an email address.
Implementations§
Source§impl PageEmailProperty
impl PageEmailProperty
Trait Implementations§
Source§impl Clone for PageEmailProperty
impl Clone for PageEmailProperty
Source§fn clone(&self) -> PageEmailProperty
fn clone(&self) -> PageEmailProperty
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 PageEmailProperty
impl Debug for PageEmailProperty
Source§impl Default for PageEmailProperty
impl Default for PageEmailProperty
Source§fn default() -> PageEmailProperty
fn default() -> PageEmailProperty
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for PageEmailProperty
impl<'de> Deserialize<'de> for PageEmailProperty
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 PageEmailProperty
impl Display for PageEmailProperty
Source§impl<T> From<T> for PageEmailProperty
impl<T> From<T> for PageEmailProperty
Source§impl PartialEq for PageEmailProperty
impl PartialEq for PageEmailProperty
Source§impl Serialize for PageEmailProperty
impl Serialize for PageEmailProperty
impl Eq for PageEmailProperty
impl StructuralPartialEq for PageEmailProperty
Auto Trait Implementations§
impl Freeze for PageEmailProperty
impl RefUnwindSafe for PageEmailProperty
impl Send for PageEmailProperty
impl Sync for PageEmailProperty
impl Unpin for PageEmailProperty
impl UnwindSafe for PageEmailProperty
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