Trait typed_graph::MigrateSchema
source · pub trait MigrateSchema<NK, EK, NewVersion>{
// Required methods
fn update_node(
&self,
new_schema: &NewVersion,
node: Self::N
) -> Option<NewVersion::N>;
fn update_edge(
&self,
new_schema: &NewVersion,
edge: Self::E
) -> Option<NewVersion::E>;
fn update_node_type(
&self,
new_schema: &NewVersion,
node_type: <Self::N as Typed>::Type
) -> Option<<NewVersion::N as Typed>::Type>;
fn update_edge_type(
&self,
new_schema: &NewVersion,
edge_type: <Self::E as Typed>::Type
) -> Option<<NewVersion::E as Typed>::Type>;
}
Required Methods§
sourcefn update_node(
&self,
new_schema: &NewVersion,
node: Self::N
) -> Option<NewVersion::N>
fn update_node( &self, new_schema: &NewVersion, node: Self::N ) -> Option<NewVersion::N>
Update a node from its old type to the new one
Returning None indicates that there exists no equivalent in the new schema
sourcefn update_edge(
&self,
new_schema: &NewVersion,
edge: Self::E
) -> Option<NewVersion::E>
fn update_edge( &self, new_schema: &NewVersion, edge: Self::E ) -> Option<NewVersion::E>
Update an edge from its old type to the new one
Returning None indicates that there exists no equivalent in the new schema
sourcefn update_node_type(
&self,
new_schema: &NewVersion,
node_type: <Self::N as Typed>::Type
) -> Option<<NewVersion::N as Typed>::Type>
fn update_node_type( &self, new_schema: &NewVersion, node_type: <Self::N as Typed>::Type ) -> Option<<NewVersion::N as Typed>::Type>
Update a node type from its old version to its new one
Returning None indicates that there exists no equivalent in the new schema
sourcefn update_edge_type(
&self,
new_schema: &NewVersion,
edge_type: <Self::E as Typed>::Type
) -> Option<<NewVersion::E as Typed>::Type>
fn update_edge_type( &self, new_schema: &NewVersion, edge_type: <Self::E as Typed>::Type ) -> Option<<NewVersion::E as Typed>::Type>
Update an edge type from its old version to its new one
Returning None indicates that there exists no equivalent in the new schema
Object Safety§
This trait is not object safe.