pub struct PageCreatedTimeProperty {
pub id: Option<String>,
pub created_time: OffsetDateTime,
}
Expand description
https://developers.notion.com/reference/page-property-values#created-time
$.['*'].id
: An underlying identifier for the property.id
remains constant when the property name changes.$.['*'].type
: Always"created_time"
$.['*'].created_time
: The date and time that the page was created. The created_time value can’t be updated.
Note: The ['*']
part represents the column name you set when creating the database.
Example created_time page property value
{
"Created time": {
"id": "sv%3Fi",
"type": "created_time",
"created_time": "2024-04-03T10:55:00.000Z"
}
}
Fields§
§id: Option<String>
An underlying identifier for the property.
id
remains constant when the property name changes.
created_time: OffsetDateTime
The date and time that the page was created. The created_time value can’t be updated.
Implementations§
Source§impl PageCreatedTimeProperty
impl PageCreatedTimeProperty
Sourcepub fn id<T>(self, id: T) -> Self
pub fn id<T>(self, id: T) -> Self
Set the value of the id
field.
An underlying identifier for the property.
id
remains constant when the property name changes.
Sourcepub fn created_time(self, created_time: OffsetDateTime) -> Self
pub fn created_time(self, created_time: OffsetDateTime) -> Self
Set the value of the created_time
field.
The date and time that the page was created. The created_time value can’t be updated.
Trait Implementations§
Source§impl Clone for PageCreatedTimeProperty
impl Clone for PageCreatedTimeProperty
Source§fn clone(&self) -> PageCreatedTimeProperty
fn clone(&self) -> PageCreatedTimeProperty
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 PageCreatedTimeProperty
impl Debug for PageCreatedTimeProperty
Source§impl Default for PageCreatedTimeProperty
impl Default for PageCreatedTimeProperty
Source§impl<'de> Deserialize<'de> for PageCreatedTimeProperty
impl<'de> Deserialize<'de> for PageCreatedTimeProperty
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 PageCreatedTimeProperty
impl Display for PageCreatedTimeProperty
Source§impl PartialEq for PageCreatedTimeProperty
impl PartialEq for PageCreatedTimeProperty
Source§impl Serialize for PageCreatedTimeProperty
impl Serialize for PageCreatedTimeProperty
impl Eq for PageCreatedTimeProperty
impl StructuralPartialEq for PageCreatedTimeProperty
Auto Trait Implementations§
impl Freeze for PageCreatedTimeProperty
impl RefUnwindSafe for PageCreatedTimeProperty
impl Send for PageCreatedTimeProperty
impl Sync for PageCreatedTimeProperty
impl Unpin for PageCreatedTimeProperty
impl UnwindSafe for PageCreatedTimeProperty
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