pub struct StorageKey { /* private fields */ }Expand description
128 random bits as lowercase hex: never a name a caller chose, so never a path that leaves its directory.
Implementations§
Source§impl StorageKey
impl StorageKey
Trait Implementations§
Source§impl Clone for StorageKey
impl Clone for StorageKey
Source§impl Debug for StorageKey
impl Debug for StorageKey
Source§impl<'de> Deserialize<'de> for StorageKey
impl<'de> Deserialize<'de> for StorageKey
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
Source§impl Display for StorageKey
impl Display for StorageKey
impl Eq for StorageKey
Source§impl Hash for StorageKey
impl Hash for StorageKey
Source§impl PartialEq for StorageKey
impl PartialEq for StorageKey
Source§impl Serialize for StorageKey
impl Serialize for StorageKey
impl StructuralPartialEq for StorageKey
Source§impl Value for StorageKey
impl Value for StorageKey
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 StorageKey
impl Freeze for StorageKey
impl RefUnwindSafe for StorageKey
impl Send for StorageKey
impl Sync for StorageKey
impl Unpin for StorageKey
impl UnsafeUnpin for StorageKey
impl UnwindSafe for StorageKey
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.
fn refuse_unlisted_move( field: &str, stored: &Self, current: &Self, ) -> Result<(), Error>
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.