pub enum Resource {
Table(Table),
RecordId(Thing),
Object(Object),
Array(Array),
Edges(Edges),
}
Expand description
A database resource
Variants§
Table(Table)
Table name
RecordId(Thing)
Record ID
Object(Object)
An object
Array(Array)
An array
Edges(Edges)
Edges
Trait Implementations§
Source§impl IntoResource<Value> for Resource
impl IntoResource<Value> for Resource
Source§fn into_resource(self) -> Result<Resource>
fn into_resource(self) -> Result<Resource>
Converts an input into a database resource
Auto Trait Implementations§
impl Freeze for Resource
impl RefUnwindSafe for Resource
impl Send for Resource
impl Sync for Resource
impl Unpin for Resource
impl UnwindSafe for Resource
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