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
Sourcepub fn add_entity(&mut self, entity: EntityResult) -> &mut Self
pub fn add_entity(&mut self, entity: EntityResult) -> &mut Self
添加一个实体结果
Sourcepub fn add_scalar(&mut self, scalar: ScalarResult) -> &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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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