pub struct DataflowDefinition {
pub meta: Header,
pub api_version: String,
pub imports: Vec<PackageImport>,
pub types: Vec<MetadataType>,
pub services: Vec<Operations>,
pub topics: Vec<(String, Topic)>,
pub dev: Option<DevConfig>,
pub packages: Vec<PackageDefinition>,
pub schedule: Option<Vec<ScheduleConfig>>,
pub default_config: Option<DefaultConfigurations>,
}Fields§
§meta: Header§api_version: String§imports: Vec<PackageImport>§types: Vec<MetadataType>§services: Vec<Operations>§topics: Vec<(String, Topic)>§dev: Option<DevConfig>§packages: Vec<PackageDefinition>§schedule: Option<Vec<ScheduleConfig>>§default_config: Option<DefaultConfigurations>Implementations§
Source§impl DataflowDefinition
impl DataflowDefinition
pub fn has_custom_types(&self) -> bool
pub fn resolve_imports(&mut self, debug: bool) -> Result<()>
pub fn add_imported_operator( &mut self, function: StepInvocation, operator_type: OperatorType, operator_placement: OperatorPlacement, package_import: PackageImport, ) -> Result<()>
pub fn add_inline_operator( &mut self, function: StepInvocation, operator_type: OperatorType, operator_placement: OperatorPlacement, ) -> Result<()>
pub fn replace_inline_operator( &mut self, function: StepInvocation, operator_type: OperatorType, operator_placement: OperatorPlacement, ) -> Result<()>
pub fn delete_operator( &mut self, operator_placement: OperatorPlacement, ) -> Result<()>
pub fn merge_dependencies( &mut self, package_configs: &[PackageDefinition], ) -> Result<()>
pub fn validate(&self) -> Result<(), DataflowDefinitionValidationFailure>
pub fn validate_version(&self) -> Result<(), DataflowDefinitionVersionError>
pub fn types_map(&self) -> SdfTypesMap
pub fn api_version(&self) -> Result<ApiVersion>
pub fn all_owned_states(&self) -> BTreeMap<String, State>
pub fn validate_states(&self) -> Result<(), DataflowDefinitionValidationError>
pub fn merge_package_import(&mut self, package_import: PackageImport)
Trait Implementations§
Source§impl Clone for DataflowDefinition
impl Clone for DataflowDefinition
Source§fn clone(&self) -> DataflowDefinition
fn clone(&self) -> DataflowDefinition
Returns a duplicate of the value. Read more
1.0.0 · 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 DataflowDefinition
impl Debug for DataflowDefinition
Source§impl Default for DataflowDefinition
impl Default for DataflowDefinition
Source§impl<'de> Deserialize<'de> for DataflowDefinition
impl<'de> Deserialize<'de> for DataflowDefinition
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
Source§impl Hash for DataflowDefinition
impl Hash for DataflowDefinition
Source§impl PartialEq for DataflowDefinition
impl PartialEq for DataflowDefinition
Source§impl Serialize for DataflowDefinition
impl Serialize for DataflowDefinition
impl ComponentType for DataflowDefinition
impl Eq for DataflowDefinition
impl Lift for DataflowDefinition
impl Lower for DataflowDefinition
impl StructuralPartialEq for DataflowDefinition
Auto Trait Implementations§
impl Freeze for DataflowDefinition
impl RefUnwindSafe for DataflowDefinition
impl Send for DataflowDefinition
impl Sync for DataflowDefinition
impl Unpin for DataflowDefinition
impl UnwindSafe for DataflowDefinition
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,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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