pub struct GraphProjectionDefinition {
pub name: String,
pub relation_types: BTreeSet<RelationTypeId>,
pub source_role: RoleId,
pub target_role: RoleId,
}Expand description
Graph projection definition.
Graph projections materialize binary relations as CSR outgoing and CSC incoming arrays over canonical topology IDs.
§Performance
Cloning is O(r) for r selected relation types plus the name length.
Fields§
§name: StringUnique projection name.
relation_types: BTreeSet<RelationTypeId>Relation types visible as binary graph edges.
source_role: RoleIdRole identifying the source endpoint.
target_role: RoleIdRole identifying the target endpoint.
Trait Implementations§
Source§impl Clone for GraphProjectionDefinition
impl Clone for GraphProjectionDefinition
Source§fn clone(&self) -> GraphProjectionDefinition
fn clone(&self) -> GraphProjectionDefinition
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 GraphProjectionDefinition
impl Debug for GraphProjectionDefinition
Source§impl<'de> Deserialize<'de> for GraphProjectionDefinition
impl<'de> Deserialize<'de> for GraphProjectionDefinition
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 GraphProjectionDefinition
impl PartialEq for GraphProjectionDefinition
Source§fn eq(&self, other: &GraphProjectionDefinition) -> bool
fn eq(&self, other: &GraphProjectionDefinition) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for GraphProjectionDefinition
impl StructuralPartialEq for GraphProjectionDefinition
Auto Trait Implementations§
impl Freeze for GraphProjectionDefinition
impl RefUnwindSafe for GraphProjectionDefinition
impl Send for GraphProjectionDefinition
impl Sync for GraphProjectionDefinition
impl Unpin for GraphProjectionDefinition
impl UnsafeUnpin for GraphProjectionDefinition
impl UnwindSafe for GraphProjectionDefinition
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