#[non_exhaustive]pub struct Operations {
pub dependency_targets: Vec<Target>,
pub disabled: bool,
pub tags: Vec<String>,
pub relation_descriptor: Option<RelationDescriptor>,
pub queries: Vec<String>,
pub has_output: bool,
/* private fields */
}Expand description
Represents a list of arbitrary database operations.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.dependency_targets: Vec<Target>A list of actions that this action depends on.
disabled: boolWhether this action is disabled (i.e. should not be run).
Arbitrary, user-defined tags on this action.
relation_descriptor: Option<RelationDescriptor>Descriptor for any output relation and its columns. Only set if
has_output is true.
queries: Vec<String>A list of arbitrary SQL statements that will be executed without alteration.
has_output: boolWhether these operations produce an output relation.
Implementations§
Source§impl Operations
impl Operations
pub fn new() -> Self
Sourcepub fn set_dependency_targets<T, V>(self, v: T) -> Self
pub fn set_dependency_targets<T, V>(self, v: T) -> Self
Sets the value of dependency_targets.
Sourcepub fn set_disabled<T: Into<bool>>(self, v: T) -> Self
pub fn set_disabled<T: Into<bool>>(self, v: T) -> Self
Sets the value of disabled.
Sets the value of tags.
Sourcepub fn set_relation_descriptor<T>(self, v: T) -> Selfwhere
T: Into<RelationDescriptor>,
pub fn set_relation_descriptor<T>(self, v: T) -> Selfwhere
T: Into<RelationDescriptor>,
Sets the value of relation_descriptor.
Sourcepub fn set_or_clear_relation_descriptor<T>(self, v: Option<T>) -> Selfwhere
T: Into<RelationDescriptor>,
pub fn set_or_clear_relation_descriptor<T>(self, v: Option<T>) -> Selfwhere
T: Into<RelationDescriptor>,
Sets or clears the value of relation_descriptor.
Sourcepub fn set_queries<T, V>(self, v: T) -> Self
pub fn set_queries<T, V>(self, v: T) -> Self
Sets the value of queries.
Sourcepub fn set_has_output<T: Into<bool>>(self, v: T) -> Self
pub fn set_has_output<T: Into<bool>>(self, v: T) -> Self
Sets the value of has_output.
Trait Implementations§
Source§impl Clone for Operations
impl Clone for Operations
Source§fn clone(&self) -> Operations
fn clone(&self) -> Operations
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 Operations
impl Debug for Operations
Source§impl Default for Operations
impl Default for Operations
Source§fn default() -> Operations
fn default() -> Operations
Returns the “default value” for a type. Read more
Source§impl PartialEq for Operations
impl PartialEq for Operations
impl StructuralPartialEq for Operations
Auto Trait Implementations§
impl Freeze for Operations
impl RefUnwindSafe for Operations
impl Send for Operations
impl Sync for Operations
impl Unpin for Operations
impl UnwindSafe for Operations
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