pub struct DatabaseRelationDetail {
pub database_id: String,
pub single_property: Option<HashMap<(), ()>>,
pub dual_property: Option<DatabaseRelationDualProperty>,
}
Fields§
§database_id: String
The database that the relation property refers to. The corresponding linked page values must belong to the database in order to be valid.
single_property: Option<HashMap<(), ()>>
Used when creating a one-way relation.
dual_property: Option<DatabaseRelationDualProperty>
Used when creating a two-way relation.
Implementations§
Source§impl DatabaseRelationDetail
impl DatabaseRelationDetail
Sourcepub fn database_id<T>(self, database_id: T) -> Self
pub fn database_id<T>(self, database_id: T) -> Self
Set the value of the database_id
field.
The database that the relation property refers to. The corresponding linked page values must belong to the database in order to be valid.
Sourcepub fn single_property(self, single_property: HashMap<(), ()>) -> Self
pub fn single_property(self, single_property: HashMap<(), ()>) -> Self
Set the value of the single_property
field.
Used when creating a one-way relation.
Sourcepub fn dual_property(self, dual_property: DatabaseRelationDualProperty) -> Self
pub fn dual_property(self, dual_property: DatabaseRelationDualProperty) -> Self
Set the value of the dual_property
field.
Used when creating a two-way relation.
Trait Implementations§
Source§impl Clone for DatabaseRelationDetail
impl Clone for DatabaseRelationDetail
Source§fn clone(&self) -> DatabaseRelationDetail
fn clone(&self) -> DatabaseRelationDetail
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 DatabaseRelationDetail
impl Debug for DatabaseRelationDetail
Source§impl Default for DatabaseRelationDetail
impl Default for DatabaseRelationDetail
Source§fn default() -> DatabaseRelationDetail
fn default() -> DatabaseRelationDetail
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for DatabaseRelationDetail
impl<'de> Deserialize<'de> for DatabaseRelationDetail
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 for DatabaseRelationDetail
impl PartialEq for DatabaseRelationDetail
Source§impl Serialize for DatabaseRelationDetail
impl Serialize for DatabaseRelationDetail
impl Eq for DatabaseRelationDetail
impl StructuralPartialEq for DatabaseRelationDetail
Auto Trait Implementations§
impl Freeze for DatabaseRelationDetail
impl RefUnwindSafe for DatabaseRelationDetail
impl Send for DatabaseRelationDetail
impl Sync for DatabaseRelationDetail
impl Unpin for DatabaseRelationDetail
impl UnwindSafe for DatabaseRelationDetail
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