pub struct CellStateProjection {
pub spec_id: Option<String>,
pub cell_id: Option<String>,
pub run_id: Option<String>,
pub placement: Option<PlacementSpec>,
pub lifecycle_stage: ProjectionLifecycleStage,
pub identity_stage: ProjectionIdentityStage,
pub export_stage: ProjectionExportStage,
pub command_exit_code: Option<i32>,
pub destroy_reason: Option<String>,
pub last_error: Option<String>,
pub exports: Vec<ExportProjectionRecord>,
pub processed_events: u64,
/* private fields */
}Fields§
§spec_id: Option<String>§cell_id: Option<String>§run_id: Option<String>§placement: Option<PlacementSpec>§lifecycle_stage: ProjectionLifecycleStage§identity_stage: ProjectionIdentityStage§export_stage: ProjectionExportStage§command_exit_code: Option<i32>§destroy_reason: Option<String>§last_error: Option<String>§exports: Vec<ExportProjectionRecord>§processed_events: u64Implementations§
Source§impl CellStateProjection
impl CellStateProjection
pub fn apply(&mut self, event: &CloudEventV1) -> Result<bool, CellosError>
pub fn current_state(&self) -> ProjectionCurrentState
pub fn snapshot(&self) -> CellStateSnapshot
Trait Implementations§
Source§impl Clone for CellStateProjection
impl Clone for CellStateProjection
Source§fn clone(&self) -> CellStateProjection
fn clone(&self) -> CellStateProjection
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 CellStateProjection
impl Debug for CellStateProjection
Source§impl Default for CellStateProjection
impl Default for CellStateProjection
Source§impl<'de> Deserialize<'de> for CellStateProjection
impl<'de> Deserialize<'de> for CellStateProjection
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<&CellStateProjection> for CellStateSnapshot
impl From<&CellStateProjection> for CellStateSnapshot
Source§fn from(value: &CellStateProjection) -> Self
fn from(value: &CellStateProjection) -> Self
Converts to this type from the input type.
Source§impl PartialEq for CellStateProjection
impl PartialEq for CellStateProjection
Source§fn eq(&self, other: &CellStateProjection) -> bool
fn eq(&self, other: &CellStateProjection) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for CellStateProjection
impl Serialize for CellStateProjection
impl Eq for CellStateProjection
impl StructuralPartialEq for CellStateProjection
Auto Trait Implementations§
impl Freeze for CellStateProjection
impl RefUnwindSafe for CellStateProjection
impl Send for CellStateProjection
impl Sync for CellStateProjection
impl Unpin for CellStateProjection
impl UnsafeUnpin for CellStateProjection
impl UnwindSafe for CellStateProjection
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