pub struct FlowStepViewOwnedView(/* private fields */);Expand description
Self-contained, 'static owned view of a FlowStepView message.
Wraps ::buffa::OwnedView<FlowStepViewView<'static>>: the decoded view and the ::buffa::bytes::Bytes buffer it borrows from travel together, so the handle is 'static and Send + Sync — suitable for async handlers, spawned tasks, and anywhere a 'static bound is required.
Field accessors return borrows tied to &self. Use Self::view to get the full FlowStepViewView when you need struct patterns, iteration helpers, or to pass the view to lifetime-parameterised code.
Implementations§
Source§impl FlowStepViewOwnedView
impl FlowStepViewOwnedView
Sourcepub fn decode(bytes: Bytes) -> Result<Self, DecodeError>
pub fn decode(bytes: Bytes) -> Result<Self, DecodeError>
Decode an owned view from a ::buffa::bytes::Bytes buffer.
The view borrows directly from the buffer’s data; the buffer is retained inside the returned handle.
§Errors
Returns ::buffa::DecodeError if the buffer contains invalid
protobuf data.
Sourcepub fn decode_with_options(
bytes: Bytes,
opts: &DecodeOptions,
) -> Result<Self, DecodeError>
pub fn decode_with_options( bytes: Bytes, opts: &DecodeOptions, ) -> Result<Self, DecodeError>
Decode with custom ::buffa::DecodeOptions (recursion limit,
max message size).
§Errors
Returns ::buffa::DecodeError if the buffer is invalid or
exceeds the configured limits.
Sourcepub fn from_owned(msg: &FlowStepView) -> Result<Self, DecodeError>
pub fn from_owned(msg: &FlowStepView) -> Result<Self, DecodeError>
Build from an owned message via an encode → decode round-trip.
§Errors
Returns ::buffa::DecodeError if the re-encoded bytes are
somehow invalid (should not happen for well-formed messages).
Sourcepub fn view(&self) -> &FlowStepViewView<'_>
pub fn view(&self) -> &FlowStepViewView<'_>
Borrow the full FlowStepViewView with its lifetime tied to &self.
Sourcepub fn to_owned_message(&self) -> Result<FlowStepView, DecodeError>
pub fn to_owned_message(&self) -> Result<FlowStepView, DecodeError>
Convert to the owned message type.
§Errors
Returns an error if re-materializing preserved unknown fields fails (e.g. the unknown-field limit is exceeded).
Sourcepub fn into_bytes(self) -> Bytes
pub fn into_bytes(self) -> Bytes
Consume the handle, returning the underlying bytes buffer.
Sourcepub fn sequence(&self) -> u32
pub fn sequence(&self) -> u32
One-based observed step sequence for display and audit.
Field 1: sequence
Sourcepub fn asset_ids(&self) -> &MessageFieldView<AssetIdsView<'_>>
pub fn asset_ids(&self) -> &MessageFieldView<AssetIdsView<'_>>
Asset identifiers involved in this step.
Field 7: asset_ids
Sourcepub fn polyester_chain_id(&self) -> u32
pub fn polyester_chain_id(&self) -> u32
Polyester Chain id associated with this step when known.
Field 8: polyester_chain_id
Sourcepub fn amount_e18(&self) -> &MessageFieldView<U128View<'_>>
pub fn amount_e18(&self) -> &MessageFieldView<U128View<'_>>
Amount represented by this step in 18-decimal unified asset units. Steps may carry the actual net movement amount when fees have already been taken.
Field 9: amount_e18
Sourcepub fn request_fee(&self) -> &MessageFieldView<RequestFeeView<'_>>
pub fn request_fee(&self) -> &MessageFieldView<RequestFeeView<'_>>
Request-scoped fee details when a fee applies to this step.
Field 24: request_fee
Sourcepub fn milestone_tx_ref(&self) -> &str
pub fn milestone_tx_ref(&self) -> &str
Transaction reference most relevant to this step.
Field 11: milestone_tx_ref
Sourcepub fn lifecycle_source(&self) -> EnumValue<LifecycleSource>
pub fn lifecycle_source(&self) -> EnumValue<LifecycleSource>
Source that produced this visible step.
Field 12: lifecycle_source
Sourcepub fn lifecycle_reason(&self) -> EnumValue<LifecycleReason>
pub fn lifecycle_reason(&self) -> EnumValue<LifecycleReason>
Product-facing reason for failed, dropped, or otherwise notable steps.
Field 13: lifecycle_reason
Sourcepub fn zipper_reason(&self) -> &MessageFieldView<ZipperReasonDetailsView<'_>>
pub fn zipper_reason(&self) -> &MessageFieldView<ZipperReasonDetailsView<'_>>
Specific reason details when a notable outcome has a catalog entry.
Field 25: zipper_reason
Sourcepub fn current_confirmations(&self) -> u32
pub fn current_confirmations(&self) -> u32
Current source confirmation count when confirmations apply.
Field 14: current_confirmations
Sourcepub fn required_confirmations(&self) -> u32
pub fn required_confirmations(&self) -> u32
Required source confirmation count when confirmations apply.
Field 15: required_confirmations
Sourcepub fn approve_count(&self) -> u32
pub fn approve_count(&self) -> u32
Current approval count when validation applies.
Field 16: approve_count
Sourcepub fn reject_count(&self) -> u32
pub fn reject_count(&self) -> u32
Current rejection count when validation applies.
Field 17: reject_count
Sourcepub fn validator_count(&self) -> u32
pub fn validator_count(&self) -> u32
Validator set size when validation applies.
Field 18: validator_count
Sourcepub fn required_approvals(&self) -> u32
pub fn required_approvals(&self) -> u32
Approval count required for this validation step.
Field 22: required_approvals
Sourcepub fn required_rejections(&self) -> u32
pub fn required_rejections(&self) -> u32
Rejection count that would fail this validation step.
Field 23: required_rejections
Sourcepub fn occurred_at_unix_ms(&self) -> u64
pub fn occurred_at_unix_ms(&self) -> u64
Step occurrence timestamp in milliseconds since epoch (UTC).
Field 19: occurred_at_unix_ms
Sourcepub fn block_time_moving_average_ms(&self) -> u64
pub fn block_time_moving_average_ms(&self) -> u64
Source-chain block time moving average in milliseconds when known.
Field 20: block_time_moving_average_ms
Sourcepub fn activities(&self) -> &RepeatedView<'_, FlowStepActivityViewView<'_>>
pub fn activities(&self) -> &RepeatedView<'_, FlowStepActivityViewView<'_>>
Nested activity rows for expandable UI detail. The top-level step remains one visible lifecycle stage while activities expose the underlying on-chain evidence that advanced it.
Field 21: activities
Trait Implementations§
Source§impl AsRef<OwnedView<FlowStepViewView<'static>>> for FlowStepViewOwnedView
impl AsRef<OwnedView<FlowStepViewView<'static>>> for FlowStepViewOwnedView
Source§fn as_ref(&self) -> &OwnedView<FlowStepViewView<'static>>
fn as_ref(&self) -> &OwnedView<FlowStepViewView<'static>>
Source§impl Clone for FlowStepViewOwnedView
impl Clone for FlowStepViewOwnedView
Source§fn clone(&self) -> FlowStepViewOwnedView
fn clone(&self) -> FlowStepViewOwnedView
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more