pub struct ResultSetMapping {
pub name: String,
pub entities: Vec<EntityResult>,
pub scalars: Vec<ScalarResult>,
}Expand description
Hibernate @SqlResultSetMapping 风格的结果集映射
Fields§
§name: String§entities: Vec<EntityResult>§scalars: Vec<ScalarResult>Implementations§
Source§impl ResultSetMapping
impl ResultSetMapping
pub fn new(name: impl Into<String>) -> Self
pub fn add_entity(&mut self, entity: EntityResult) -> &mut Self
pub fn add_scalar(&mut self, scalar: ScalarResult) -> &mut Self
Trait Implementations§
Source§impl Clone for ResultSetMapping
impl Clone for ResultSetMapping
Source§fn clone(&self) -> ResultSetMapping
fn clone(&self) -> ResultSetMapping
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 ResultSetMapping
impl Debug for ResultSetMapping
Source§impl PartialEq for ResultSetMapping
impl PartialEq for ResultSetMapping
impl StructuralPartialEq for ResultSetMapping
Auto Trait Implementations§
impl Freeze for ResultSetMapping
impl RefUnwindSafe for ResultSetMapping
impl Send for ResultSetMapping
impl Sync for ResultSetMapping
impl Unpin for ResultSetMapping
impl UnsafeUnpin for ResultSetMapping
impl UnwindSafe for ResultSetMapping
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