pub enum UserDefinedTypeStorage {
Plain,
External,
Extended,
Main,
}Expand description
Storage specification for PostgreSQL user-defined base types.
Specifies the storage strategy for values of the data type:
plain: Prevents compression and out-of-line storage (for fixed-length types)external: Allows out-of-line storage but not compressionextended: Allows both compression and out-of-line storage (default for most types)main: Allows compression but discourages out-of-line storage
§PostgreSQL Documentation
See: https://www.postgresql.org/docs/current/sql-createtype.html
§Examples
CREATE TYPE mytype (
INPUT = in_func,
OUTPUT = out_func,
STORAGE = plain
);Variants§
Plain
No compression or out-of-line storage: STORAGE = plain
External
Out-of-line storage allowed, no compression: STORAGE = external
Extended
Both compression and out-of-line storage allowed: STORAGE = extended
Main
Compression allowed, out-of-line discouraged: STORAGE = main
Trait Implementations§
Source§impl Clone for UserDefinedTypeStorage
impl Clone for UserDefinedTypeStorage
Source§fn clone(&self) -> UserDefinedTypeStorage
fn clone(&self) -> UserDefinedTypeStorage
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for UserDefinedTypeStorage
impl Debug for UserDefinedTypeStorage
Source§impl<'de> Deserialize<'de> for UserDefinedTypeStorage
impl<'de> Deserialize<'de> for UserDefinedTypeStorage
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 Display for UserDefinedTypeStorage
impl Display for UserDefinedTypeStorage
Source§impl Hash for UserDefinedTypeStorage
impl Hash for UserDefinedTypeStorage
Source§impl Ord for UserDefinedTypeStorage
impl Ord for UserDefinedTypeStorage
Source§fn cmp(&self, other: &UserDefinedTypeStorage) -> Ordering
fn cmp(&self, other: &UserDefinedTypeStorage) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for UserDefinedTypeStorage
impl PartialEq for UserDefinedTypeStorage
Source§impl PartialOrd for UserDefinedTypeStorage
impl PartialOrd for UserDefinedTypeStorage
Source§impl Serialize for UserDefinedTypeStorage
impl Serialize for UserDefinedTypeStorage
Source§impl Visit for UserDefinedTypeStorage
impl Visit for UserDefinedTypeStorage
Source§impl VisitMut for UserDefinedTypeStorage
impl VisitMut for UserDefinedTypeStorage
fn visit<V: VisitorMut>(&mut self, visitor: &mut V) -> ControlFlow<V::Break>
impl Copy for UserDefinedTypeStorage
impl Eq for UserDefinedTypeStorage
impl StructuralPartialEq for UserDefinedTypeStorage
Auto Trait Implementations§
impl Freeze for UserDefinedTypeStorage
impl RefUnwindSafe for UserDefinedTypeStorage
impl Send for UserDefinedTypeStorage
impl Sync for UserDefinedTypeStorage
impl Unpin for UserDefinedTypeStorage
impl UnwindSafe for UserDefinedTypeStorage
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