pub struct CompositeTypeDescriptor {
pub dropped: Vec<DroppedCompositeAttribute>,
pub type_oid: u32,
pub relation_oid: u32,
pub attributes: Vec<CompositeAttribute>,
}Expand description
The live attributes of one composite type in the statement’s catalog generation.
Fields§
§dropped: Vec<DroppedCompositeAttribute>Physical slots left by removed attributes, without retaining a type dependency.
type_oid: u32§relation_oid: u32§attributes: Vec<CompositeAttribute>Implementations§
Source§impl CompositeTypeDescriptor
impl CompositeTypeDescriptor
Sourcepub fn from_metadata_with_control<'a>(
type_oid: u32,
relation_oid: u32,
attributes: impl IntoIterator<Item = Result<(&'a str, &'a ColumnType, i16, Option<u32>), SQLError>>,
dropped: impl IntoIterator<Item = Result<DroppedCompositeAttribute, SQLError>>,
control: &ProductionControl<'_>,
) -> Result<Produced<Self>, SQLError>
pub fn from_metadata_with_control<'a>( type_oid: u32, relation_oid: u32, attributes: impl IntoIterator<Item = Result<(&'a str, &'a ColumnType, i16, Option<u32>), SQLError>>, dropped: impl IntoIterator<Item = Result<DroppedCompositeAttribute, SQLError>>, control: &ProductionControl<'_>, ) -> Result<Produced<Self>, SQLError>
Build the selected descriptor directly from borrowed catalog fields. Dropped physical positions precede live attributes, preserving the ordinary producer’s diagnostic order.
Source§impl CompositeTypeDescriptor
impl CompositeTypeDescriptor
Sourcepub fn expand_record_with_control(
&self,
value: &Value,
control: &ProductionControl<'_>,
) -> Result<Produced<Value>, SQLError>
pub fn expand_record_with_control( &self, value: &Value, control: &ProductionControl<'_>, ) -> Result<Produced<Value>, SQLError>
Capture an expanded record’s field binding without reading any tuple payload. Dropped physical positions retain their original width and alignment.
Sourcepub fn expanded_with_control(
datum: &DatumValue,
catalog: Option<&dyn SQLValueCatalog>,
control: &ProductionControl<'_>,
) -> Result<Option<Produced<Self>>, SQLError>
pub fn expanded_with_control( datum: &DatumValue, catalog: Option<&dyn SQLValueCatalog>, control: &ProductionControl<'_>, ) -> Result<Option<Produced<Self>>, SQLError>
Rebind a copied expanded record from its frozen field identities, without observing tuple payloads or replacing them with the named type’s new layout.
pub fn clone_with_control( &self, control: &ProductionControl<'_>, ) -> Result<Produced<Self>, ValueRetentionError>
Source§impl CompositeTypeDescriptor
impl CompositeTypeDescriptor
Sourcepub fn physical_width(&self) -> i16
pub fn physical_width(&self) -> i16
Number of physical positions, including trailing dropped attributes.
pub fn attribute(&self, name: &str) -> Option<(usize, &CompositeAttribute)>
Trait Implementations§
Source§impl Clone for CompositeTypeDescriptor
impl Clone for CompositeTypeDescriptor
Source§impl Debug for CompositeTypeDescriptor
impl Debug for CompositeTypeDescriptor
Source§impl<'de> Deserialize<'de> for CompositeTypeDescriptor
impl<'de> Deserialize<'de> for CompositeTypeDescriptor
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
impl Eq for CompositeTypeDescriptor
Source§impl ObserveAllocations for CompositeTypeDescriptor
impl ObserveAllocations for CompositeTypeDescriptor
fn observe_allocations<'a>( &'a self, observer: &mut AllocationObserver<'a, '_>, ) -> Result<(), ValueRetentionError>
Source§impl PartialEq for CompositeTypeDescriptor
impl PartialEq for CompositeTypeDescriptor
Source§impl Serialize for CompositeTypeDescriptor
impl Serialize for CompositeTypeDescriptor
impl StructuralPartialEq for CompositeTypeDescriptor
Auto Trait Implementations§
impl Freeze for CompositeTypeDescriptor
impl RefUnwindSafe for CompositeTypeDescriptor
impl Send for CompositeTypeDescriptor
impl Sync for CompositeTypeDescriptor
impl Unpin for CompositeTypeDescriptor
impl UnsafeUnpin for CompositeTypeDescriptor
impl UnwindSafe for CompositeTypeDescriptor
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<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
impl<T> ErasedDestructor for Twhere
T: 'static,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more