pub struct RelationMapper;Expand description
关系映射器
Implementations§
Source§impl RelationMapper
impl RelationMapper
Sourcepub fn extract_relationships(results: &[GraphResult]) -> Vec<&GraphRelationship>
pub fn extract_relationships(results: &[GraphResult]) -> Vec<&GraphRelationship>
从结果列表提取所有关系
Sourcepub fn map_relationship<T: DeserializeOwned>(
rel: &GraphRelationship,
) -> Result<T, GraphError>
pub fn map_relationship<T: DeserializeOwned>( rel: &GraphRelationship, ) -> Result<T, GraphError>
将关系属性反序列化到用户结构
Auto Trait Implementations§
impl Freeze for RelationMapper
impl RefUnwindSafe for RelationMapper
impl Send for RelationMapper
impl Sync for RelationMapper
impl Unpin for RelationMapper
impl UnsafeUnpin for RelationMapper
impl UnwindSafe for RelationMapper
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