#[repr(i32)]pub enum AssetTag {
GalleryMeta = 0,
GalleryItem = 1,
DriveMeta = 2,
DriveItem = 3,
}Expand description
Classifies an asset into a logical section of the Android client.
Stored as an i32 in SQLite to minimize storage footprint. The client
uses this tag to route an asset to the correct UI view (gallery or drive)
without needing to inspect the encrypted file contents.
Variants§
GalleryMeta = 0
Metadata file for the Gallery section (encrypted index, thumbnails, etc.).
GalleryItem = 1
An encrypted media file belonging to the Gallery section.
DriveMeta = 2
Metadata file for the Drive section.
DriveItem = 3
An encrypted file belonging to the Drive section.
Trait Implementations§
impl Copy for AssetTag
Source§impl<'q, DB: Database> Encode<'q, DB> for AssetTagwhere
i32: Encode<'q, DB>,
impl<'q, DB: Database> Encode<'q, DB> for AssetTagwhere
i32: Encode<'q, DB>,
Source§fn encode_by_ref(
&self,
buf: &mut <DB as Database>::ArgumentBuffer,
) -> Result<IsNull, BoxDynError>
fn encode_by_ref( &self, buf: &mut <DB as Database>::ArgumentBuffer, ) -> Result<IsNull, BoxDynError>
fn size_hint(&self) -> usize
§fn encode(
self,
buf: &mut <DB as Database>::ArgumentBuffer,
) -> Result<IsNull, Box<dyn Error + Send + Sync>>where
Self: Sized,
fn encode(
self,
buf: &mut <DB as Database>::ArgumentBuffer,
) -> Result<IsNull, Box<dyn Error + Send + Sync>>where
Self: Sized,
Writes the value of
self into buf in the expected format for the database.fn produces(&self) -> Option<<DB as Database>::TypeInfo>
Auto Trait Implementations§
impl Freeze for AssetTag
impl RefUnwindSafe for AssetTag
impl Send for AssetTag
impl Sync for AssetTag
impl Unpin for AssetTag
impl UnsafeUnpin for AssetTag
impl UnwindSafe for AssetTag
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,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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