pub struct WorkflowProjection { /* private fields */ }Implementations§
Source§impl WorkflowProjection
impl WorkflowProjection
pub fn new(turn_id: TurnId) -> Self
pub fn graph(&self) -> &WorkflowGraph
pub fn into_graph(self) -> WorkflowGraph
pub fn revision(&self) -> u64
pub fn summary(&self) -> &WorkflowSummary
pub fn find_node(&self, id: &str) -> Option<&WorkflowNode>
pub fn descendant_pending_permissions(&self, flow_node_id: &str) -> usize
pub fn permission_request_for_node( &self, node_id: &str, ) -> Option<&WorkflowPermissionRequest>
pub fn permission_group_progress( &self, group_id: &PermissionGroupId, ) -> Option<(usize, usize)>
pub fn apply_batch<'a>( &mut self, events: impl IntoIterator<Item = &'a Event>, ) -> ProjectionDelta
pub fn apply_event(&mut self, event: &Event) -> ProjectionDelta
pub fn apply_stream_frame(&mut self, frame: &StreamFrame) -> ProjectionDelta
pub fn apply_stream_frame_at( &mut self, frame: &StreamFrame, override_ts: Option<DateTime<Utc>>, ) -> ProjectionDelta
pub fn interrupt_pending_permissions(&mut self) -> ProjectionDelta
pub fn apply_permission_request( &mut self, payload: &PermissionRequestAudit, state: WorkflowPermissionState, ) -> ProjectionDelta
pub fn apply_permission_request_with_identity( &mut self, identity: WorkflowPermissionIdentity, payload: &PermissionRequestAudit, state: WorkflowPermissionState, ) -> ProjectionDelta
pub fn apply_permission_requests( &mut self, requests: impl IntoIterator<Item = (WorkflowPermissionIdentity, PermissionRequestAudit, WorkflowPermissionState)>, ) -> ProjectionDelta
pub fn apply_permission_group( &mut self, payload: &PermissionGroupAudit, resolved: bool, ) -> ProjectionDelta
Methods from Deref<Target = WorkflowGraph>§
pub fn find_node(&self, id: &str) -> Option<&WorkflowNode>
pub fn descendant_pending_permissions(&self, flow_node_id: &str) -> usize
Trait Implementations§
Source§impl Clone for WorkflowProjection
impl Clone for WorkflowProjection
Source§fn clone(&self) -> WorkflowProjection
fn clone(&self) -> WorkflowProjection
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 WorkflowProjection
impl Debug for WorkflowProjection
Source§impl Deref for WorkflowProjection
impl Deref for WorkflowProjection
Source§impl<'de> Deserialize<'de> for WorkflowProjection
impl<'de> Deserialize<'de> for WorkflowProjection
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 From<WorkflowGraph> for WorkflowProjection
impl From<WorkflowGraph> for WorkflowProjection
Source§fn from(graph: WorkflowGraph) -> Self
fn from(graph: WorkflowGraph) -> Self
Converts to this type from the input type.
Source§impl From<WorkflowProjection> for WorkflowGraph
impl From<WorkflowProjection> for WorkflowGraph
Source§fn from(projection: WorkflowProjection) -> Self
fn from(projection: WorkflowProjection) -> Self
Converts to this type from the input type.
Source§impl PartialEq for WorkflowProjection
impl PartialEq for WorkflowProjection
Auto Trait Implementations§
impl Freeze for WorkflowProjection
impl RefUnwindSafe for WorkflowProjection
impl Send for WorkflowProjection
impl Sync for WorkflowProjection
impl Unpin for WorkflowProjection
impl UnsafeUnpin for WorkflowProjection
impl UnwindSafe for WorkflowProjection
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.