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>) -> ResultSetMapping
pub fn add_entity(&mut self, entity: EntityResult) -> &mut ResultSetMapping
pub fn add_scalar(&mut self, scalar: ScalarResult) -> &mut ResultSetMapping
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more