pub enum FormatKind {
Json,
Yaml,
Toml,
Ini,
Csv,
Xml,
Custom(&'static str),
Plaintext,
}Variants§
Implementations§
Source§impl FormatKind
impl FormatKind
pub fn custom(name: &'static str) -> Self
Sourcepub fn extensions(&self) -> &'static [&'static str]
pub fn extensions(&self) -> &'static [&'static str]
Get file extensions for this format. Note: For custom formats, this returns an empty slice. Use FormatRegistry to get extensions for custom formats.
Sourcepub fn is_available(&self) -> bool
pub fn is_available(&self) -> bool
Check if this format is available (feature enabled).
Trait Implementations§
Source§impl Clone for FormatKind
impl Clone for FormatKind
Source§fn clone(&self) -> FormatKind
fn clone(&self) -> FormatKind
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for FormatKind
impl Debug for FormatKind
Source§impl Display for FormatKind
impl Display for FormatKind
Source§impl FromStr for FormatKind
impl FromStr for FormatKind
Source§impl Hash for FormatKind
impl Hash for FormatKind
Source§impl PartialEq for FormatKind
impl PartialEq for FormatKind
impl Copy for FormatKind
impl Eq for FormatKind
impl StructuralPartialEq for FormatKind
Auto Trait Implementations§
impl Freeze for FormatKind
impl RefUnwindSafe for FormatKind
impl Send for FormatKind
impl Sync for FormatKind
impl Unpin for FormatKind
impl UnwindSafe for FormatKind
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)