Enum mdsf::formatters::MdsfFormatter
source · pub enum MdsfFormatter<T>where
T: Display,{
Single(T),
Multiple(Vec<MdsfFormatter<T>>),
}
Variants§
Single(T)
Multiple(Vec<MdsfFormatter<T>>)
Trait Implementations§
source§impl<T> Debug for MdsfFormatter<T>
impl<T> Debug for MdsfFormatter<T>
source§impl Default for MdsfFormatter<Blade>
impl Default for MdsfFormatter<Blade>
source§impl Default for MdsfFormatter<C>
impl Default for MdsfFormatter<C>
source§impl Default for MdsfFormatter<CSharp>
impl Default for MdsfFormatter<CSharp>
source§impl Default for MdsfFormatter<Cabal>
impl Default for MdsfFormatter<Cabal>
source§impl Default for MdsfFormatter<Clojure>
impl Default for MdsfFormatter<Clojure>
source§impl Default for MdsfFormatter<Cpp>
impl Default for MdsfFormatter<Cpp>
source§impl Default for MdsfFormatter<Crystal>
impl Default for MdsfFormatter<Crystal>
source§impl Default for MdsfFormatter<Css>
impl Default for MdsfFormatter<Css>
source§impl Default for MdsfFormatter<Dart>
impl Default for MdsfFormatter<Dart>
source§impl Default for MdsfFormatter<Elixir>
impl Default for MdsfFormatter<Elixir>
source§impl Default for MdsfFormatter<Elm>
impl Default for MdsfFormatter<Elm>
source§impl Default for MdsfFormatter<Erlang>
impl Default for MdsfFormatter<Erlang>
source§impl Default for MdsfFormatter<FSharp>
impl Default for MdsfFormatter<FSharp>
source§impl Default for MdsfFormatter<Fortran>
impl Default for MdsfFormatter<Fortran>
source§impl Default for MdsfFormatter<Gleam>
impl Default for MdsfFormatter<Gleam>
source§impl Default for MdsfFormatter<Go>
impl Default for MdsfFormatter<Go>
source§impl Default for MdsfFormatter<GraphQL>
impl Default for MdsfFormatter<GraphQL>
source§impl Default for MdsfFormatter<Groovy>
impl Default for MdsfFormatter<Groovy>
source§impl Default for MdsfFormatter<Haskell>
impl Default for MdsfFormatter<Haskell>
source§impl Default for MdsfFormatter<Hcl>
impl Default for MdsfFormatter<Hcl>
source§impl Default for MdsfFormatter<Html>
impl Default for MdsfFormatter<Html>
source§impl Default for MdsfFormatter<Java>
impl Default for MdsfFormatter<Java>
source§impl Default for MdsfFormatter<JavaScript>
impl Default for MdsfFormatter<JavaScript>
source§impl Default for MdsfFormatter<Json>
impl Default for MdsfFormatter<Json>
source§impl Default for MdsfFormatter<Julia>
impl Default for MdsfFormatter<Julia>
source§impl Default for MdsfFormatter<Just>
impl Default for MdsfFormatter<Just>
source§impl Default for MdsfFormatter<Kcl>
impl Default for MdsfFormatter<Kcl>
source§impl Default for MdsfFormatter<Kotlin>
impl Default for MdsfFormatter<Kotlin>
source§impl Default for MdsfFormatter<Lua>
impl Default for MdsfFormatter<Lua>
source§impl Default for MdsfFormatter<Markdown>
impl Default for MdsfFormatter<Markdown>
source§impl Default for MdsfFormatter<Nim>
impl Default for MdsfFormatter<Nim>
source§impl Default for MdsfFormatter<Nix>
impl Default for MdsfFormatter<Nix>
source§impl Default for MdsfFormatter<OCaml>
impl Default for MdsfFormatter<OCaml>
source§impl Default for MdsfFormatter<ObjectiveC>
impl Default for MdsfFormatter<ObjectiveC>
source§impl Default for MdsfFormatter<Perl>
impl Default for MdsfFormatter<Perl>
source§impl Default for MdsfFormatter<Protobuf>
impl Default for MdsfFormatter<Protobuf>
source§impl Default for MdsfFormatter<PureScript>
impl Default for MdsfFormatter<PureScript>
source§impl Default for MdsfFormatter<Python>
impl Default for MdsfFormatter<Python>
source§impl Default for MdsfFormatter<ReScript>
impl Default for MdsfFormatter<ReScript>
source§impl Default for MdsfFormatter<ReStructuredText>
impl Default for MdsfFormatter<ReStructuredText>
source§impl Default for MdsfFormatter<Roc>
impl Default for MdsfFormatter<Roc>
source§impl Default for MdsfFormatter<Ruby>
impl Default for MdsfFormatter<Ruby>
source§impl Default for MdsfFormatter<Rust>
impl Default for MdsfFormatter<Rust>
source§impl Default for MdsfFormatter<Scala>
impl Default for MdsfFormatter<Scala>
source§impl Default for MdsfFormatter<Shell>
impl Default for MdsfFormatter<Shell>
source§impl Default for MdsfFormatter<Sql>
impl Default for MdsfFormatter<Sql>
source§impl Default for MdsfFormatter<Swift>
impl Default for MdsfFormatter<Swift>
source§impl Default for MdsfFormatter<Toml>
impl Default for MdsfFormatter<Toml>
source§impl Default for MdsfFormatter<TypeScript>
impl Default for MdsfFormatter<TypeScript>
source§impl Default for MdsfFormatter<Vue>
impl Default for MdsfFormatter<Vue>
source§impl Default for MdsfFormatter<Xml>
impl Default for MdsfFormatter<Xml>
source§impl Default for MdsfFormatter<Yaml>
impl Default for MdsfFormatter<Yaml>
source§impl Default for MdsfFormatter<Zig>
impl Default for MdsfFormatter<Zig>
source§impl<'de, T> Deserialize<'de> for MdsfFormatter<T>where
T: Display + Deserialize<'de>,
impl<'de, T> Deserialize<'de> for MdsfFormatter<T>where
T: Display + Deserialize<'de>,
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<T> JsonSchema for MdsfFormatter<T>where
T: Display + JsonSchema,
impl<T> JsonSchema for MdsfFormatter<T>where
T: Display + JsonSchema,
source§fn schema_name() -> String
fn schema_name() -> String
The name of the generated JSON Schema. Read more
source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
source§fn json_schema(gen: &mut SchemaGenerator) -> Schema
fn json_schema(gen: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
source§fn is_referenceable() -> bool
fn is_referenceable() -> bool
Whether JSON Schemas generated for this type should be re-used where possible using the
$ref
keyword. Read moreAuto Trait Implementations§
impl<T> Freeze for MdsfFormatter<T>where
T: Freeze,
impl<T> RefUnwindSafe for MdsfFormatter<T>where
T: RefUnwindSafe,
impl<T> Send for MdsfFormatter<T>where
T: Send,
impl<T> Sync for MdsfFormatter<T>where
T: Sync,
impl<T> Unpin for MdsfFormatter<T>where
T: Unpin,
impl<T> UnwindSafe for MdsfFormatter<T>where
T: UnwindSafe,
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> 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