pub struct EntityResult {
pub entity_class: String,
pub fields: Vec<FieldResult>,
pub discriminator_column: Option<String>,
}Expand description
Entity 结果(用于 ResultSetMapping)
Fields§
§entity_class: String§fields: Vec<FieldResult>§discriminator_column: Option<String>Implementations§
Source§impl EntityResult
impl EntityResult
pub fn new(entity_class: impl Into<String>) -> EntityResult
pub fn add_field(&mut self, field: FieldResult) -> &mut EntityResult
pub fn with_discriminator_column(self, col: impl Into<String>) -> EntityResult
Trait Implementations§
Source§impl Clone for EntityResult
impl Clone for EntityResult
Source§fn clone(&self) -> EntityResult
fn clone(&self) -> EntityResult
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 EntityResult
impl Debug for EntityResult
impl Eq for EntityResult
Source§impl PartialEq for EntityResult
impl PartialEq for EntityResult
impl StructuralPartialEq for EntityResult
Auto Trait Implementations§
impl Freeze for EntityResult
impl RefUnwindSafe for EntityResult
impl Send for EntityResult
impl Sync for EntityResult
impl Unpin for EntityResult
impl UnsafeUnpin for EntityResult
impl UnwindSafe for EntityResult
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