Struct pgrx_sql_entity_graph::UsedType
source · pub struct UsedType {
pub original_ty: Type,
pub resolved_ty: Type,
pub composite_type: Option<CompositeTypeMacro>,
pub variadic: bool,
pub default: Option<String>,
pub optional: Option<Type>,
pub result: bool,
}
Expand description
A type, optionally with an overriding composite type name
Fields§
§original_ty: Type
§resolved_ty: Type
§composite_type: Option<CompositeTypeMacro>
Set via composite_type!()
variadic: bool
Set via VariadicArray
or variadic!()
default: Option<String>
§optional: Option<Type>
Set via the type being an Option
or a Result<Option<T>>
.
result: bool
Set via the type being a Result<T>
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for UsedType
impl !Send for UsedType
impl !Sync for UsedType
impl Unpin for UsedType
impl UnwindSafe for UsedType
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