pub struct ColumnRequest {
pub name: String,
pub ty: ColumnType,
}Expand description
A column to read out of a driver row, and the type to read it as.
Fields§
§name: StringThe column’s name.
ty: ColumnTypeThe type its getter should use.
Implementations§
Source§impl ColumnRequest
impl ColumnRequest
Sourcepub fn new(name: impl Into<String>, ty: ColumnType) -> Self
pub fn new(name: impl Into<String>, ty: ColumnType) -> Self
Request name as ty.
Sourcepub fn for_entity<E: Entity>() -> Vec<ColumnRequest>
pub fn for_entity<E: Entity>() -> Vec<ColumnRequest>
Every column of an entity, in declaration order — what a SELECT *
of that entity should be read back as.
Trait Implementations§
Source§impl Clone for ColumnRequest
impl Clone for ColumnRequest
Source§impl Debug for ColumnRequest
impl Debug for ColumnRequest
impl Eq for ColumnRequest
Source§impl PartialEq for ColumnRequest
impl PartialEq for ColumnRequest
impl StructuralPartialEq for ColumnRequest
Auto Trait Implementations§
impl Freeze for ColumnRequest
impl RefUnwindSafe for ColumnRequest
impl Send for ColumnRequest
impl Sync for ColumnRequest
impl Unpin for ColumnRequest
impl UnsafeUnpin for ColumnRequest
impl UnwindSafe for ColumnRequest
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> Event for T
impl<T> Event for T
Source§fn event_name() -> &'static strwhere
Self: Sized,
fn event_name() -> &'static strwhere
Self: Sized,
A human-readable name, used by wildcard listeners and log output.
Always the Rust type path; see the trait docs.