pub struct RelationshipCondition {
pub resource_prefix: String,
pub edge_label: String,
pub from_label: Option<String>,
pub to_label: Option<String>,
pub no_cycle: bool,
pub from_property_equals: BTreeMap<String, Scalar>,
pub to_property_equals: BTreeMap<String, Scalar>,
pub from_property_not_equals: BTreeMap<String, Scalar>,
pub to_property_not_equals: BTreeMap<String, Scalar>,
}Expand description
Constraints on a relationship (edge) addressed by resource_prefix.
Fields§
§resource_prefix: StringResource-id prefix that selects the from/to endpoints from the request.
edge_label: StringRequired edge label (e.g. REPORTS_TO).
from_label: Option<String>Required label of the from endpoint, if any.
to_label: Option<String>Required label of the to endpoint, if any.
no_cycle: boolReject the write if it would introduce a cycle along edge_label.
from_property_equals: BTreeMap<String, Scalar>from-endpoint properties that must equal these values.
to_property_equals: BTreeMap<String, Scalar>to-endpoint properties that must equal these values.
from_property_not_equals: BTreeMap<String, Scalar>from-endpoint properties that must not equal these values.
to_property_not_equals: BTreeMap<String, Scalar>to-endpoint properties that must not equal these values.
Trait Implementations§
Source§impl Clone for RelationshipCondition
impl Clone for RelationshipCondition
Source§fn clone(&self) -> RelationshipCondition
fn clone(&self) -> RelationshipCondition
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 RelationshipCondition
impl Debug for RelationshipCondition
Source§impl<'de> Deserialize<'de> for RelationshipCondition
impl<'de> Deserialize<'de> for RelationshipCondition
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
Auto Trait Implementations§
impl Freeze for RelationshipCondition
impl RefUnwindSafe for RelationshipCondition
impl Send for RelationshipCondition
impl Sync for RelationshipCondition
impl Unpin for RelationshipCondition
impl UnsafeUnpin for RelationshipCondition
impl UnwindSafe for RelationshipCondition
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