Struct query_structure::prelude::SingleRecord
source · pub struct SingleRecord {
pub record: Record,
pub field_names: Vec<String>,
}
Fields§
§record: Record
§field_names: Vec<String>
Implementations§
source§impl SingleRecord
impl SingleRecord
pub fn new(record: Record, field_names: Vec<String>) -> Self
pub fn extract_selection_result( &self, extraction_selection: &FieldSelection ) -> Result<SelectionResult>
pub fn get_field_value(&self, field: &str) -> Result<&PrismaValue>
Trait Implementations§
source§impl Clone for SingleRecord
impl Clone for SingleRecord
source§fn clone(&self) -> SingleRecord
fn clone(&self) -> SingleRecord
Returns a copy 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 SingleRecord
impl Debug for SingleRecord
source§impl From<SingleRecord> for ManyRecords
impl From<SingleRecord> for ManyRecords
source§fn from(single: SingleRecord) -> ManyRecords
fn from(single: SingleRecord) -> ManyRecords
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for SingleRecord
impl Send for SingleRecord
impl Sync for SingleRecord
impl Unpin for SingleRecord
impl !UnwindSafe for SingleRecord
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