Struct notion_wasi::models::properties::Relation
source · pub struct Relation {
pub database_id: DatabaseId,
pub synced_property_name: Option<String>,
pub synced_property_id: Option<PropertyId>,
}Fields§
§database_id: DatabaseIdThe database this relation refers to. New linked pages must belong to this database in order to be valid.
synced_property_name: Option<String>By default, relations are formed as two synced properties across databases:
if you make a change to one property, it updates the synced property at the same time.
synced_property_name refers to the name of the property in the related database.
synced_property_id: Option<PropertyId>By default, relations are formed as two synced properties across databases:
if you make a change to one property, it updates the synced property at the same time.
synced_property_id refers to the id of the property in the related database.
This is usually a short string of random letters and symbols.
Trait Implementations§
source§impl<'de> Deserialize<'de> for Relation
impl<'de> Deserialize<'de> for Relation
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 PartialEq<Relation> for Relation
impl PartialEq<Relation> for Relation
impl Eq for Relation
impl StructuralEq for Relation
impl StructuralPartialEq for Relation
Auto Trait Implementations§
impl RefUnwindSafe for Relation
impl Send for Relation
impl Sync for Relation
impl Unpin for Relation
impl UnwindSafe for Relation
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
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.