pub struct Relation {
pub database_id: DatabaseId,
pub synced_property_name: Option<String>,
pub synced_property_id: Option<PropertyId>,
}
Fields§
§database_id: DatabaseId
The 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
impl Eq for Relation
impl StructuralPartialEq for Relation
Auto Trait Implementations§
impl Freeze for Relation
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<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.