pub struct PageRelationProperty {
pub id: Option<String>,
pub relation: Vec<PageRelationPropertyParameter>,
pub has_more: bool,
}
Expand description
https://developers.notion.com/reference/page-property-values#relation
$.['*'].id
: An underlying identifier for the property.id
remains constant when the property name changes.$.['*'].type
: Always"relation"
$.['*'].relation
: An array of related page references. A page reference is an object with an id key and a string value corresponding to a page ID in another database.
Note: The ['*']
part represents the column name you set when creating the database.
Example relation page property value
{
"Related": {
"id": "b%7D%3Ek",
"type": "relation",
"relation": [
{
"id": "669ffc58-9c20-4264-956b-f7f917c58400"
}
],
"has_more": false
}
}
Fields§
§id: Option<String>
An underlying identifier for the property.
id
remains constant when the property name changes.
relation: Vec<PageRelationPropertyParameter>
An array of related page references. A page reference is an object with an id key and a string value corresponding to a page ID in another database.
has_more: bool
If a relation has more than 25 references, then the has_more value for the relation in the response object is true. If a relation doesn’t exceed the limit, then has_more is false.
Implementations§
Source§impl PageRelationProperty
impl PageRelationProperty
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 relation(self, relation: Vec<PageRelationPropertyParameter>) -> Self
pub fn relation(self, relation: Vec<PageRelationPropertyParameter>) -> Self
Set the value of the relation
field.
An array of related page references. A page reference is an object with an id key and a string value corresponding to a page ID in another database.
Trait Implementations§
Source§impl Clone for PageRelationProperty
impl Clone for PageRelationProperty
Source§fn clone(&self) -> PageRelationProperty
fn clone(&self) -> PageRelationProperty
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more