Trait FeattleStringValue

Source
pub trait FeattleStringValue:
    FromStr
    + ToString
    + Debug
where <Self as FromStr>::Err: Error + Send + Sync + 'static,
{ // Required method fn serialized_string_format() -> StringFormat; }
Expand description

The base trait for string-types that can be used for feattles.

This trait should be used for types that behave like string. A blanked implementation of FeattleValue for types that implement this trait will provide the necessary compatibility to use them as feattles.

Note that this trait also requires that the type implements:

Required Methods§

Source

fn serialized_string_format() -> StringFormat

Return a precise description of a feattle type. This will be consumed, for example, by the UI code to show an appropriate HTML form in the admin panel.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl FeattleStringValue for String

Source§

impl FeattleStringValue for Uuid

Implementors§