pub struct ResultMapper;Expand description
结果映射器
Implementations§
Source§impl ResultMapper
impl ResultMapper
Sourcepub fn map_to<T: DeserializeOwned>(
results: &[GraphResult],
) -> Result<Vec<T>, GraphError>
pub fn map_to<T: DeserializeOwned>( results: &[GraphResult], ) -> Result<Vec<T>, GraphError>
将 GraphResult 列表反序列化到用户结构
Auto Trait Implementations§
impl Freeze for ResultMapper
impl RefUnwindSafe for ResultMapper
impl Send for ResultMapper
impl Sync for ResultMapper
impl Unpin for ResultMapper
impl UnsafeUnpin for ResultMapper
impl UnwindSafe for ResultMapper
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