pub struct SqlQueryRowsOutput {
pub entity: String,
pub columns: Vec<String>,
pub rows: Vec<Vec<String>>,
pub row_count: u32,
}Expand description
SqlQueryRowsOutput
Structured SQL projection payload.
Fields§
§entity: String§columns: Vec<String>§rows: Vec<Vec<String>>§row_count: u32Implementations§
Source§impl SqlQueryRowsOutput
impl SqlQueryRowsOutput
Sourcepub fn from_projection(entity: String, projection: SqlProjectionRows) -> Self
pub fn from_projection(entity: String, projection: SqlProjectionRows) -> Self
Build one endpoint-friendly rows payload from one projection result.
Sourcepub fn as_projection_rows(&self) -> SqlProjectionRows
pub fn as_projection_rows(&self) -> SqlProjectionRows
Borrow this output as one render-ready projection row payload.
Trait Implementations§
Source§impl CandidType for SqlQueryRowsOutput
impl CandidType for SqlQueryRowsOutput
Source§impl Clone for SqlQueryRowsOutput
impl Clone for SqlQueryRowsOutput
Source§fn clone(&self) -> SqlQueryRowsOutput
fn clone(&self) -> SqlQueryRowsOutput
Returns a duplicate of the value. Read more
1.0.0 · 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 SqlQueryRowsOutput
impl Debug for SqlQueryRowsOutput
Source§impl<'de> Deserialize<'de> for SqlQueryRowsOutput
impl<'de> Deserialize<'de> for SqlQueryRowsOutput
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for SqlQueryRowsOutput
impl PartialEq for SqlQueryRowsOutput
impl Eq for SqlQueryRowsOutput
impl StructuralPartialEq for SqlQueryRowsOutput
Auto Trait Implementations§
impl Freeze for SqlQueryRowsOutput
impl RefUnwindSafe for SqlQueryRowsOutput
impl Send for SqlQueryRowsOutput
impl Sync for SqlQueryRowsOutput
impl Unpin for SqlQueryRowsOutput
impl UnsafeUnpin for SqlQueryRowsOutput
impl UnwindSafe for SqlQueryRowsOutput
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