pub struct Database {
pub id: String,
pub rid: String,
pub ts: u64,
pub _self: String,
pub etag: String,
pub colls: String,
pub users: String,
}Expand description
A logical namespace for collections, users, and permissions.
You can learn more about Databases here.
Fields§
§id: StringThe database id
rid: StringThe resource id
ts: u64The last updated timestamp
_self: StringThe resource’s uri
etag: StringThe resource’s etag used for concurrency control
colls: StringThe path to the database collections resource
users: StringThe path to the database users resource
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Database
impl<'de> Deserialize<'de> for Database
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 PartialOrd for Database
impl PartialOrd for Database
Source§impl Resource for &Database
impl Resource for &Database
Source§fn read_permission(&self) -> PermissionMode
fn read_permission(&self) -> PermissionMode
Get the read permissions for the resource
Source§fn all_permission(&self) -> PermissionMode
fn all_permission(&self) -> PermissionMode
Get all permissions for the resource
Source§impl Resource for Database
impl Resource for Database
Source§fn read_permission(&self) -> PermissionMode
fn read_permission(&self) -> PermissionMode
Get the read permissions for the resource
Source§fn all_permission(&self) -> PermissionMode
fn all_permission(&self) -> PermissionMode
Get all permissions for the resource
impl Eq for Database
impl StructuralPartialEq for Database
Auto Trait Implementations§
impl Freeze for Database
impl RefUnwindSafe for Database
impl Send for Database
impl Sync for Database
impl Unpin for Database
impl UnsafeUnpin for Database
impl UnwindSafe for Database
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.