pub struct CrudFlow {
pub name: String,
pub base_path: Option<String>,
pub steps: Vec<FlowStep>,
}Expand description
A complete CRUD flow definition
Fields§
§name: StringName of this flow
base_path: Option<String>Base path for this resource (e.g., “/users”)
steps: Vec<FlowStep>Ordered list of steps in the flow
Implementations§
Source§impl CrudFlow
impl CrudFlow
Sourcepub fn with_base_path(self, path: String) -> Self
pub fn with_base_path(self, path: String) -> Self
Set the base path
Sourcepub fn get_all_extract_fields(&self) -> HashSet<String>
pub fn get_all_extract_fields(&self) -> HashSet<String>
Get all fields that need to be extracted across all steps
Trait Implementations§
Source§impl<'de> Deserialize<'de> for CrudFlow
impl<'de> Deserialize<'de> for CrudFlow
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
Auto Trait Implementations§
impl Freeze for CrudFlow
impl RefUnwindSafe for CrudFlow
impl Send for CrudFlow
impl Sync for CrudFlow
impl Unpin for CrudFlow
impl UnwindSafe for CrudFlow
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<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