pub enum ObjectType {
Show 82 variants
Jpeg,
Png,
Gif,
Webp,
Avif,
Heic,
GpuTexture,
Tiff,
Bmp,
Raw,
Exr,
Hdr,
Mp4,
Mov,
Avi,
Mkv,
Webm,
Flv,
Wmv,
Mpg,
Mp3,
Aac,
Ogg,
Opus,
Flac,
Wav,
Aiff,
Alac,
Pdf,
Svg,
Eps,
Text,
Json,
Xml,
Yaml,
Toml,
Csv,
Zip,
Tar,
Gz,
SevenZ,
Rar,
Parquet,
MlData,
MlModel,
MlDeployment,
MlCheckpoint,
MlInference,
AdobePhotoshop,
AdobeIllustrator,
AdobeIndesign,
AdobeAfterEffects,
AdobePremiere,
DavinciResolve,
FinalCutPro,
AvidMediaComposer,
Model3D,
Blender,
Maya,
ThreeDsMax,
Cinema4D,
Houdini,
ProTools,
AbletonLive,
FLStudio,
LogicPro,
AutoCad,
SketchUp,
Revit,
UnityProject,
UnrealProject,
GodotProject,
WordDocument,
ExcelSpreadsheet,
PowerpointPresentation,
OpenDocument,
SqliteDatabase,
CompressedLog,
GitBlob,
GitTree,
GitCommit,
Unknown,
}Expand description
Object/File type classification for compression strategy selection
Variants§
Jpeg
Png
Gif
Webp
Avif
Heic
GpuTexture
Tiff
Bmp
Raw
Exr
Hdr
Mp4
Mov
Avi
Mkv
Webm
Flv
Wmv
Mpg
Mp3
Aac
Ogg
Opus
Flac
Wav
Aiff
Alac
Svg
Eps
Text
Json
Xml
Yaml
Toml
Csv
Zip
Tar
Gz
SevenZ
Rar
Parquet
MlData
MlModel
MlDeployment
MlCheckpoint
MlInference
AdobePhotoshop
AdobeIllustrator
AdobeIndesign
AdobeAfterEffects
AdobePremiere
DavinciResolve
FinalCutPro
AvidMediaComposer
Model3D
Blender
Maya
ThreeDsMax
Cinema4D
Houdini
ProTools
AbletonLive
FLStudio
LogicPro
AutoCad
SketchUp
Revit
UnityProject
UnrealProject
GodotProject
WordDocument
ExcelSpreadsheet
PowerpointPresentation
OpenDocument
SqliteDatabase
CompressedLog
GitBlob
GitTree
GitCommit
Unknown
Implementations§
Source§impl ObjectType
impl ObjectType
Sourcepub fn from_extension(ext: &str) -> Self
pub fn from_extension(ext: &str) -> Self
Detect object type from file extension
Sourcepub fn from_magic_bytes(data: &[u8]) -> Self
pub fn from_magic_bytes(data: &[u8]) -> Self
Detect object type from magic bytes
Sourcepub fn is_already_compressed(self) -> bool
pub fn is_already_compressed(self) -> bool
Check if this type is already compressed
Sourcepub fn category(self) -> ObjectCategory
pub fn category(self) -> ObjectCategory
Get the category of this object type
Trait Implementations§
Source§impl Clone for ObjectType
impl Clone for ObjectType
impl Copy for ObjectType
Source§impl Debug for ObjectType
impl Debug for ObjectType
impl Eq for ObjectType
Source§impl Hash for ObjectType
impl Hash for ObjectType
Source§impl PartialEq for ObjectType
impl PartialEq for ObjectType
impl StructuralPartialEq for ObjectType
Auto Trait Implementations§
impl Forget for ObjectType
impl Freeze for ObjectType
impl RefUnwindSafe for ObjectType
impl Send for ObjectType
impl Sync for ObjectType
impl Unpin for ObjectType
impl UnsafeUnpin for ObjectType
impl UnwindSafe for ObjectType
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