pub enum ColumnarProjectionSourceV1 {
Scalar {
lineage: ContractLineage,
definition_fingerprint: DefinitionFingerprint,
},
Vector(VectorProjectionSourceV1),
}Expand description
One canonical schema-bound scalar or vector source identity.
Variants§
Scalar
Scalar columnar state bound to the accepted physical definition fingerprint.
Fields
§
lineage: ContractLineageContract lineage owning the schema.
§
definition_fingerprint: DefinitionFingerprintAccepted legacy definition fingerprint.
Vector(VectorProjectionSourceV1)
Vector columnar state retaining the accepted lineage/entity/field tuple.
Implementations§
Source§impl ColumnarProjectionSourceV1
impl ColumnarProjectionSourceV1
Sourcepub const fn scalar(
lineage: ContractLineage,
definition_fingerprint: DefinitionFingerprint,
) -> Self
pub const fn scalar( lineage: ContractLineage, definition_fingerprint: DefinitionFingerprint, ) -> Self
Constructs one scalar source identity.
Sourcepub const fn vector(source: VectorProjectionSourceV1) -> Self
pub const fn vector(source: VectorProjectionSourceV1) -> Self
Constructs one vector source identity.
Sourcepub const fn lineage(&self) -> &ContractLineage
pub const fn lineage(&self) -> &ContractLineage
Returns the owning contract lineage.
Sourcepub fn to_canonical_bytes(&self) -> Vec<u8> ⓘ
pub fn to_canonical_bytes(&self) -> Vec<u8> ⓘ
Encodes the exact ADR-0192 canonical source bytes.
Sourcepub fn from_canonical_bytes(
bytes: &[u8],
) -> Result<Self, ColumnarProjectionSourceError>
pub fn from_canonical_bytes( bytes: &[u8], ) -> Result<Self, ColumnarProjectionSourceError>
Decodes, fully consumes, and revalidates exact canonical source bytes.
Trait Implementations§
Source§impl Clone for ColumnarProjectionSourceV1
impl Clone for ColumnarProjectionSourceV1
Source§impl Debug for ColumnarProjectionSourceV1
impl Debug for ColumnarProjectionSourceV1
impl Eq for ColumnarProjectionSourceV1
Source§impl Hash for ColumnarProjectionSourceV1
impl Hash for ColumnarProjectionSourceV1
Source§impl Ord for ColumnarProjectionSourceV1
impl Ord for ColumnarProjectionSourceV1
1.21.0 (const: unstable) · 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
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialOrd for ColumnarProjectionSourceV1
impl PartialOrd for ColumnarProjectionSourceV1
impl StructuralPartialEq for ColumnarProjectionSourceV1
Auto Trait Implementations§
impl Freeze for ColumnarProjectionSourceV1
impl RefUnwindSafe for ColumnarProjectionSourceV1
impl Send for ColumnarProjectionSourceV1
impl Sync for ColumnarProjectionSourceV1
impl Unpin for ColumnarProjectionSourceV1
impl UnsafeUnpin for ColumnarProjectionSourceV1
impl UnwindSafe for ColumnarProjectionSourceV1
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