pub trait FileStoredFormat: Format {
// Required method
fn file_extensions(&self) -> &'static [&'static str];
}
Expand description
An extension of Format
trait.
Associates format with file extensions, therefore linking storage-agnostic notion of format to a file system.
Required Methods§
Sourcefn file_extensions(&self) -> &'static [&'static str]
fn file_extensions(&self) -> &'static [&'static str]
Returns a vector of file extensions, for instance [yml, yaml]
.