pub struct ServerV4 {
pub usernames: LookupTable<String, Owner>,
pub metas: LookupTable<Uuid, ServerFile>,
pub sizes: LookupTable<Uuid, u64>,
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>,
}
Fields§
§usernames: LookupTable<String, Owner>
§metas: LookupTable<Uuid, ServerFile>
§sizes: LookupTable<Uuid, u64>
§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>
Trait Implementations§
Source§impl Db for ServerV4
impl Db for ServerV4
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 ServerV4
impl RefUnwindSafe for ServerV4
impl Send for ServerV4
impl Sync for ServerV4
impl Unpin for ServerV4
impl UnwindSafe for ServerV4
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