pub struct CoordinatorDataPlanEnvelope {
pub schema_version: u32,
pub schema_fingerprint: String,
pub plan_fingerprint: String,
pub relation_fingerprint: Option<String>,
pub plan: DataPlan,
pub coordinator_relations: Option<CoordinatorRelationSet>,
pub metadata: BTreeMap<String, Value>,
}Fields§
§schema_version: u32§schema_fingerprint: String§plan_fingerprint: String§relation_fingerprint: Option<String>§plan: DataPlan§coordinator_relations: Option<CoordinatorRelationSet>§metadata: BTreeMap<String, Value>Implementations§
Source§impl CoordinatorDataPlanEnvelope
impl CoordinatorDataPlanEnvelope
pub fn from_parts( schema: &DatasetSchema, plan: DataPlan, relations: Option<&SampleRelationTable>, ) -> Result<CoordinatorDataPlanEnvelope, DataError>
Sourcepub fn validate(&self) -> Result<(), DataError>
pub fn validate(&self) -> Result<(), DataError>
Validate the envelope.
Only the plan fingerprint is recomputed and matched against the
declared value (the plan is carried in the envelope), so a tampered plan
is rejected with DataError::FingerprintMismatch. The schema and
relation fingerprints are replay keys for source artifacts (the
DatasetSchema and the source SampleRelationTable) that are not
carried here, so they are format-validated only; the embedded
coordinator_relations is a derived view validated structurally, not
against the fingerprint.
Trait Implementations§
Source§impl Clone for CoordinatorDataPlanEnvelope
impl Clone for CoordinatorDataPlanEnvelope
Source§fn clone(&self) -> CoordinatorDataPlanEnvelope
fn clone(&self) -> CoordinatorDataPlanEnvelope
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CoordinatorDataPlanEnvelope
impl Debug for CoordinatorDataPlanEnvelope
Source§impl<'de> Deserialize<'de> for CoordinatorDataPlanEnvelope
impl<'de> Deserialize<'de> for CoordinatorDataPlanEnvelope
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<CoordinatorDataPlanEnvelope, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<CoordinatorDataPlanEnvelope, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for CoordinatorDataPlanEnvelope
impl PartialEq for CoordinatorDataPlanEnvelope
Source§fn eq(&self, other: &CoordinatorDataPlanEnvelope) -> bool
fn eq(&self, other: &CoordinatorDataPlanEnvelope) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for CoordinatorDataPlanEnvelope
impl Serialize for CoordinatorDataPlanEnvelope
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for CoordinatorDataPlanEnvelope
Auto Trait Implementations§
impl Freeze for CoordinatorDataPlanEnvelope
impl RefUnwindSafe for CoordinatorDataPlanEnvelope
impl Send for CoordinatorDataPlanEnvelope
impl Sync for CoordinatorDataPlanEnvelope
impl Unpin for CoordinatorDataPlanEnvelope
impl UnsafeUnpin for CoordinatorDataPlanEnvelope
impl UnwindSafe for CoordinatorDataPlanEnvelope
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