pub struct Locale { /* private fields */ }Expand description
Each part is checked for its shape, not against a registry.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Locale
impl<'de> Deserialize<'de> for Locale
Source§fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
impl Eq for Locale
impl StructuralPartialEq for Locale
Source§impl Value for Locale
impl Value for Locale
type Inner = String
fn inner(&self) -> &String
fn try_from_inner(text: String) -> Result<Self, impl Display>
Source§fn decode_stored(text: String) -> Result<Self>
fn decode_stored(text: String) -> Result<Self>
Overridden when an input rule tightens, so rows written under the looser one still read.
const SENSITIVE: bool = false
Auto Trait Implementations§
impl Forget for Locale
impl Freeze for Locale
impl RefUnwindSafe for Locale
impl Send for Locale
impl Sync for Locale
impl Unpin for Locale
impl UnsafeUnpin for Locale
impl UnwindSafe for Locale
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<V> Cast for Vwhere
V: Value,
impl<V> Cast for Vwhere
V: Value,
const COLUMNS: &'static [ColumnSpec] = <V::Inner>::COLUMNS
const NULLABLE: bool = <V::Inner>::NULLABLE
Source§const SENSITIVE: bool
const SENSITIVE: bool
A field holding it is never filtered, sorted, listed or searched, as
#[sensitive] ones.fn encode(&self, out: &mut Vec<SqlValue>)
fn decode(row: &mut dyn ColumnReader) -> Result<V, Error>
Source§const MOVES: Option<fn(&Self) -> Option<&'static Targets>> = None
const MOVES: Option<fn(&Self) -> Option<&'static Targets>> = None
Set for a value moving between listed states; a save of any other value skips the check.
Source§const HOLDS_STATES: bool
const HOLDS_STATES: bool
Set when a state anywhere in the value is checked on save, as a field’s of several.