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tiff,
Ts,
Ttf,
Txt,
Txtz,
Tz,
Tzo,
Vob,
Voc,
Vsd,
Vtt,
Wav,
Weba,
Webm,
Webp,
Wma,
Wmf,
Wmv,
Woff,
Woff2,
Wpd,
Wps,
Wtv,
X3f,
Xcf,
Xls,
Xlsm,
Xlsx,
Xps,
Xz,
Z,
Zabw,
Zip,
}Expand description
Supported CloudConvert file extension tokens.
Values serialize to the lowercase extension token CloudConvert expects, without a leading dot. The list is derived from CloudConvert’s operations metadata endpoint.
use cloudconvert_sdk::FileExtension;
assert_eq!(FileExtension::Pdf.as_str(), "pdf");
assert_eq!(".TAR.GZ".parse::<FileExtension>().unwrap(), FileExtension::TarGz);
assert_eq!(
serde_json::to_value(FileExtension::SevenZ).unwrap(),
serde_json::json!("7z")
);Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
ThreeFr
ThreeG2
ThreeGp
ThreeGpp
SevenZ
Aac
Abw
Ac3
Ace
Ai
Aif
Aifc
Aiff
Alz
Amr
Arc
Arj
Arw
Au
Avi
Avif
Azw
Azw3
Azw4
Bmp
Bz
Bz2
Cab
Caf
Cavs
Cbc
Cbr
Cbz
Cdr
Cgm
Chm
Cpio
Cr2
Cr3
Crw
Csv
Dcr
Deb
Djvu
Dmg
Dng
Doc
Docm
Docx
Dot
Dotx
Dps
Dss
Dv
Dvr
Dwf
Dwg
Dxf
Emf
Eml
Eot
Eps
Epub
Erf
Et
Fb2
Flac
Flv
Gif
Gz
Heic
Heif
Htm
Html
Htmlz
Hwp
Hwpx
Icns
Ico
Img
Iso
Jar
Jfif
Jpeg
Jpg
Key
Lha
Lit
Lrf
Lwp
Lz
Lzma
Lzo
M2ts
M4a
M4b
M4v
Md
Mkv
Mobi
Mod
Mos
Mov
Mp3
Mp4
Mpeg
Mpg
Mrw
Mts
Mxf
Nef
Numbers
Odd
Odg
Odp
Ods
Odt
Oeb
Oga
Ogg
Ogv
Opus
Orf
Otf
Pages
Pdb
Pef
Pml
Png
Pot
Potx
Ppm
Pps
Ppsx
Ppt
Pptm
Pptx
Prc
Ps
Psb
Psd
Pub
Raf
Rar
Raw
Rb
Rm
Rmvb
Rpm
Rst
Rtf
Rw2
Rz
Sda
Sdc
Sdw
Sf2
Sfark
Sk
Sk1
Snb
Svg
Svgz
Swf
Tar
Tar7z
TarBz
TarBz2
TarGz
TarLzo
TarXz
TarZ
Tbz
Tbz2
Tcr
Tex
Tga
Tgz
Tif
Tiff
Ts
Ttf
Txt
Txtz
Tz
Tzo
Vob
Voc
Vsd
Vtt
Wav
Weba
Webm
Webp
Wma
Wmf
Wmv
Woff
Woff2
Wpd
Wps
Wtv
X3f
Xcf
Xls
Xlsm
Xlsx
Xps
Xz
Z
Zabw
Zip
Implementations§
Source§impl FileExtension
impl FileExtension
Sourcepub fn parse(value: &str) -> Result<Self, ParseFileExtensionError>
pub fn parse(value: &str) -> Result<Self, ParseFileExtensionError>
Parses a CloudConvert extension token.
Leading dots, surrounding whitespace and ASCII case differences are normalized before matching.
use cloudconvert_sdk::FileExtension;
assert_eq!(FileExtension::parse(" .PDF ").unwrap(), FileExtension::Pdf);Trait Implementations§
Source§impl AsRef<str> for FileExtension
impl AsRef<str> for FileExtension
Source§impl Clone for FileExtension
impl Clone for FileExtension
Source§fn clone(&self) -> FileExtension
fn clone(&self) -> FileExtension
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for FileExtension
impl Debug for FileExtension
Source§impl<'de> Deserialize<'de> for FileExtension
impl<'de> Deserialize<'de> for FileExtension
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 Display for FileExtension
impl Display for FileExtension
Source§impl From<&FileExtension> for String
impl From<&FileExtension> for String
Source§fn from(value: &FileExtension) -> Self
fn from(value: &FileExtension) -> Self
Converts to this type from the input type.
Source§impl From<FileExtension> for String
impl From<FileExtension> for String
Source§fn from(value: FileExtension) -> Self
fn from(value: FileExtension) -> Self
Converts to this type from the input type.
Source§impl FromStr for FileExtension
impl FromStr for FileExtension
Source§impl Hash for FileExtension
impl Hash for FileExtension
Source§impl Ord for FileExtension
impl Ord for FileExtension
Source§fn cmp(&self, other: &FileExtension) -> Ordering
fn cmp(&self, other: &FileExtension) -> Ordering
1.21.0 (const: unstable) · 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 FileExtension
impl PartialEq for FileExtension
Source§fn eq(&self, other: &FileExtension) -> bool
fn eq(&self, other: &FileExtension) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for FileExtension
impl PartialOrd for FileExtension
Source§impl Serialize for FileExtension
impl Serialize for FileExtension
impl Copy for FileExtension
impl Eq for FileExtension
impl StructuralPartialEq for FileExtension
Auto Trait Implementations§
impl Freeze for FileExtension
impl RefUnwindSafe for FileExtension
impl Send for FileExtension
impl Sync for FileExtension
impl Unpin for FileExtension
impl UnsafeUnpin for FileExtension
impl UnwindSafe for FileExtension
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