Struct pgx_utils::sql_entity_graph::UsedTypeEntity
source · [−]pub struct UsedTypeEntity {
pub ty_source: &'static str,
pub ty_id: TypeId,
pub full_path: &'static str,
pub module_path: String,
pub composite_type: Option<&'static str>,
pub variadic: bool,
pub default: Option<&'static str>,
pub optional: bool,
pub metadata: FunctionMetadataTypeEntity,
}
Fields
ty_source: &'static str
ty_id: TypeId
full_path: &'static str
module_path: String
composite_type: Option<&'static str>
variadic: bool
default: Option<&'static str>
optional: bool
Set via the type being an Option
.
metadata: FunctionMetadataTypeEntity
Trait Implementations
sourceimpl Clone for UsedTypeEntity
impl Clone for UsedTypeEntity
sourcefn clone(&self) -> UsedTypeEntity
fn clone(&self) -> UsedTypeEntity
Returns a copy of the value. Read more
1.0.0 · sourceconst fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for UsedTypeEntity
impl Debug for UsedTypeEntity
sourceimpl Hash for UsedTypeEntity
impl Hash for UsedTypeEntity
sourceimpl Ord for UsedTypeEntity
impl Ord for UsedTypeEntity
sourcefn cmp(&self, other: &UsedTypeEntity) -> Ordering
fn cmp(&self, other: &UsedTypeEntity) -> Ordering
1.21.0 · sourceconst fn max(self, other: Self) -> Self
const fn max(self, other: Self) -> Self
Compares and returns the maximum of two values. Read more
1.21.0 · sourceconst fn min(self, other: Self) -> Self
const fn min(self, other: Self) -> Self
Compares and returns the minimum of two values. Read more
1.50.0 · sourceconst fn clamp(self, min: Self, max: Self) -> Selfwhere
Self: PartialOrd<Self>,
const fn clamp(self, min: Self, max: Self) -> Selfwhere
Self: PartialOrd<Self>,
Restrict a value to a certain interval. Read more
sourceimpl PartialEq<UsedTypeEntity> for UsedTypeEntity
impl PartialEq<UsedTypeEntity> for UsedTypeEntity
sourcefn eq(&self, other: &UsedTypeEntity) -> bool
fn eq(&self, other: &UsedTypeEntity) -> bool
sourceimpl PartialOrd<UsedTypeEntity> for UsedTypeEntity
impl PartialOrd<UsedTypeEntity> for UsedTypeEntity
sourcefn partial_cmp(&self, other: &UsedTypeEntity) -> Option<Ordering>
fn partial_cmp(&self, other: &UsedTypeEntity) -> Option<Ordering>
1.0.0 · sourceconst fn le(&self, other: &Rhs) -> bool
const 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 moreimpl Eq for UsedTypeEntity
impl StructuralEq for UsedTypeEntity
impl StructuralPartialEq for UsedTypeEntity
Auto Trait Implementations
impl RefUnwindSafe for UsedTypeEntity
impl Send for UsedTypeEntity
impl Sync for UsedTypeEntity
impl Unpin for UsedTypeEntity
impl UnwindSafe for UsedTypeEntity
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
sourcefn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.