pub type OwnedSchemaReference = SchemaReference<'static>;

Aliased Type§

enum OwnedSchemaReference {
    Bare {
        schema: Cow<'static, str>,
    },
    Full {
        schema: Cow<'static, str>,
        catalog: Cow<'static, str>,
    },
}

Variants§

§

Bare

Fields

§schema: Cow<'static, str>
§

Full

Fields

§schema: Cow<'static, str>
§catalog: Cow<'static, str>

Implementations§

source§

impl SchemaReference<'_>

source

pub fn schema_name(&self) -> &str

Get only the schema name that this references.

Trait Implementations§

source§

impl<'a> Clone for SchemaReference<'a>

source§

fn clone(&self) -> SchemaReference<'a>

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl<'a> Debug for SchemaReference<'a>

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Display for SchemaReference<'_>

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl<'a> From<&'a SchemaReference<'static>> for SchemaReference<'a>

source§

fn from(value: &'a OwnedSchemaReference) -> Self

Converts to this type from the input type.
source§

impl<'a> Hash for SchemaReference<'a>

source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · source§

fn hash_slice<H>(data: &[Self], state: &mut H)where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
source§

impl<'a> Ord for SchemaReference<'a>

source§

fn cmp(&self, other: &SchemaReference<'a>) -> Ordering

This method returns an Ordering between self and other. Read more
1.21.0 · source§

fn max(self, other: Self) -> Selfwhere Self: Sized,

Compares and returns the maximum of two values. Read more
1.21.0 · source§

fn min(self, other: Self) -> Selfwhere Self: Sized,

Compares and returns the minimum of two values. Read more
1.50.0 · source§

fn clamp(self, min: Self, max: Self) -> Selfwhere Self: Sized + PartialOrd<Self>,

Restrict a value to a certain interval. Read more
source§

impl<'a> PartialEq<SchemaReference<'a>> for SchemaReference<'a>

source§

fn eq(&self, other: &SchemaReference<'a>) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl<'a> PartialOrd<SchemaReference<'a>> for SchemaReference<'a>

source§

fn partial_cmp(&self, other: &SchemaReference<'a>) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · source§

fn lt(&self, other: &Rhs) -> bool

This method tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · source§

fn le(&self, other: &Rhs) -> bool

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 · source§

fn gt(&self, other: &Rhs) -> bool

This method tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · source§

fn ge(&self, other: &Rhs) -> bool

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more
source§

impl<'a> Eq for SchemaReference<'a>

source§

impl<'a> StructuralEq for SchemaReference<'a>

source§

impl<'a> StructuralPartialEq for SchemaReference<'a>