pub struct ServerV5 {Show 14 fields
pub usernames: LookupTable<String, Owner>,
pub metas: LookupTable<Uuid, ServerMeta>,
pub google_play_ids: LookupTable<String, Owner>,
pub stripe_ids: LookupTable<String, Owner>,
pub app_store_ids: LookupTable<String, Owner>,
pub last_seen: LookupTable<Owner, u64>,
pub accounts: LookupTable<Owner, Account>,
pub owned_files: LookupSet<Owner, Uuid>,
pub shared_files: LookupSet<Owner, Uuid>,
pub file_children: LookupSet<Uuid, Uuid>,
pub server_egress: Single<BandwidthReport>,
pub egress_by_owner: LookupTable<Owner, BandwidthReport>,
pub scheduled_file_cleanups: LookupTable<(Uuid, DocumentHmac), i64>,
pub debug_info: LookupMap<Owner, LbID, DebugInfo>,
}Fields§
§usernames: LookupTable<String, Owner>§metas: LookupTable<Uuid, ServerMeta>§google_play_ids: LookupTable<String, Owner>§stripe_ids: LookupTable<String, Owner>§app_store_ids: LookupTable<String, Owner>§last_seen: LookupTable<Owner, u64>§accounts: LookupTable<Owner, Account>§owned_files: LookupSet<Owner, Uuid>§file_children: LookupSet<Uuid, Uuid>§server_egress: Single<BandwidthReport>§egress_by_owner: LookupTable<Owner, BandwidthReport>§scheduled_file_cleanups: LookupTable<(Uuid, DocumentHmac), i64>§debug_info: LookupMap<Owner, LbID, DebugInfo>Trait Implementations§
Source§impl Db for ServerV5
impl Db for ServerV5
fn init(config: Config) -> DbResult<Self>
fn compact_log(&mut self) -> DbResult<()>
fn get_logger(&self) -> &Logger
fn config(&self) -> Result<Config, DbError>
fn incomplete_write(&self) -> Result<bool, DbError>
fn begin_transaction(&mut self) -> Result<TxHandle, DbError>
Auto Trait Implementations§
impl Freeze for ServerV5
impl RefUnwindSafe for ServerV5
impl Send for ServerV5
impl Sync for ServerV5
impl Unpin for ServerV5
impl UnsafeUnpin for ServerV5
impl UnwindSafe for ServerV5
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more