pub struct D1Result(/* private fields */);
Implementations§
Source§impl D1Result
impl D1Result
Sourcepub fn error(&self) -> Option<String>
pub fn error(&self) -> Option<String>
Return the error contained in this result.
Returns None
if the result indicates a success.
Sourcepub fn results<T>(&self) -> Result<Vec<T>>where
T: for<'a> Deserialize<'a>,
pub fn results<T>(&self) -> Result<Vec<T>>where
T: for<'a> Deserialize<'a>,
Retrieve the collection of result objects, or an Err
if an error occurred.
Sourcepub fn meta(&self) -> Result<Option<D1ResultMeta>>
pub fn meta(&self) -> Result<Option<D1ResultMeta>>
Return the meta data in this result.
Returns None
if meta
field is not populated.
Auto Trait Implementations§
impl Freeze for D1Result
impl RefUnwindSafe for D1Result
impl !Send for D1Result
impl !Sync for D1Result
impl Unpin for D1Result
impl UnwindSafe for D1Result
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