Struct agdb_api::ServerDatabase
source · pub struct ServerDatabase {
pub name: String,
pub db_type: DbType,
pub role: DbUserRole,
pub size: u64,
pub backup: u64,
}Fields§
§name: String§db_type: DbType§role: DbUserRole§size: u64§backup: u64Trait Implementations§
source§impl Debug for ServerDatabase
impl Debug for ServerDatabase
source§impl Default for ServerDatabase
impl Default for ServerDatabase
source§fn default() -> ServerDatabase
fn default() -> ServerDatabase
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for ServerDatabase
impl<'de> Deserialize<'de> for ServerDatabase
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 Ord for ServerDatabase
impl Ord for ServerDatabase
source§fn cmp(&self, other: &ServerDatabase) -> Ordering
fn cmp(&self, other: &ServerDatabase) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq for ServerDatabase
impl PartialEq for ServerDatabase
source§fn eq(&self, other: &ServerDatabase) -> bool
fn eq(&self, other: &ServerDatabase) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl PartialOrd for ServerDatabase
impl PartialOrd for ServerDatabase
source§fn partial_cmp(&self, other: &ServerDatabase) -> Option<Ordering>
fn partial_cmp(&self, other: &ServerDatabase) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self and other) and is used by the <=
operator. Read moresource§impl Serialize for ServerDatabase
impl Serialize for ServerDatabase
source§impl<'__s> ToSchema<'__s> for ServerDatabase
impl<'__s> ToSchema<'__s> for ServerDatabase
impl Eq for ServerDatabase
impl StructuralPartialEq for ServerDatabase
Auto Trait Implementations§
impl RefUnwindSafe for ServerDatabase
impl Send for ServerDatabase
impl Sync for ServerDatabase
impl Unpin for ServerDatabase
impl UnwindSafe for ServerDatabase
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
§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.