pub struct FlowTxMatchViewOwnedView(/* private fields */);Expand description
Self-contained, 'static owned view of a FlowTxMatchView message.
Wraps ::buffa::OwnedView<FlowTxMatchViewView<'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 FlowTxMatchViewView when you need struct patterns, iteration helpers, or to pass the view to lifetime-parameterised code.
Implementations§
Source§impl FlowTxMatchViewOwnedView
impl FlowTxMatchViewOwnedView
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: &FlowTxMatchView) -> Result<Self, DecodeError>
pub fn from_owned(msg: &FlowTxMatchView) -> 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) -> &FlowTxMatchViewView<'_>
pub fn view(&self) -> &FlowTxMatchViewView<'_>
Borrow the full FlowTxMatchViewView with its lifetime tied to &self.
Sourcepub fn to_owned_message(&self) -> Result<FlowTxMatchView, DecodeError>
pub fn to_owned_message(&self) -> Result<FlowTxMatchView, 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 flow_id(&self) -> &str
pub fn flow_id(&self) -> &str
Public, URL-safe lifecycle identifier for display, URLs, and user search.
Field 1: flow_id
Sourcepub fn source_tx_hash(&self) -> &str
pub fn source_tx_hash(&self) -> &str
First observed source transaction hash for the flow when known.
Field 4: source_tx_hash
Sourcepub fn latest_tx_ref(&self) -> &str
pub fn latest_tx_ref(&self) -> &str
Latest transaction reference associated with the current visible state.
Field 5: latest_tx_ref
Sourcepub fn tx_occurrence_index(&self) -> u64
pub fn tx_occurrence_index(&self) -> u64
Stable occurrence discriminator within a transaction. For source-chain deposits this is the batched leg index; for on-chain facts it is the log or equivalent per-tx occurrence index when available.
Field 6: tx_occurrence_index
Sourcepub fn source_domain(&self) -> EnumValue<FlowDomain>
pub fn source_domain(&self) -> EnumValue<FlowDomain>
Product domain where the overall flow starts.
Field 7: source_domain
Sourcepub fn destination_domain(&self) -> EnumValue<FlowDomain>
pub fn destination_domain(&self) -> EnumValue<FlowDomain>
Product domain where the overall flow ends or currently settles.
Field 8: destination_domain
Sourcepub fn current_step(&self) -> EnumValue<FlowStep>
pub fn current_step(&self) -> EnumValue<FlowStep>
Current user-facing progress step for this flow.
Field 9: current_step
Sourcepub fn is_terminal(&self) -> bool
pub fn is_terminal(&self) -> bool
True when this flow reached a final state.
Field 11: is_terminal
Sourcepub fn asset_ids(&self) -> &MessageFieldView<AssetIdsView<'_>>
pub fn asset_ids(&self) -> &MessageFieldView<AssetIdsView<'_>>
Asset identifiers involved in this flow.
Field 12: asset_ids
Sourcepub fn polyester_chain_id(&self) -> u32
pub fn polyester_chain_id(&self) -> u32
Polyester Chain id associated with this flow.
Field 13: polyester_chain_id
Sourcepub fn amount_e18(&self) -> &MessageFieldView<U128View<'_>>
pub fn amount_e18(&self) -> &MessageFieldView<U128View<'_>>
Gross principal amount for this flow in 18-decimal unified asset units.
Field 14: amount_e18
Sourcepub fn source_address(&self) -> &str
pub fn source_address(&self) -> &str
Source address to show for this flow.
Field 15: source_address
Sourcepub fn destination_address(&self) -> &str
pub fn destination_address(&self) -> &str
Destination address to show for this flow.
Field 16: destination_address
Sourcepub fn lifecycle_reason(&self) -> EnumValue<LifecycleReason>
pub fn lifecycle_reason(&self) -> EnumValue<LifecycleReason>
Product-facing reason for failed, dropped, or otherwise notable flows.
Field 17: lifecycle_reason
Sourcepub fn last_activity_at_unix_ms(&self) -> u64
pub fn last_activity_at_unix_ms(&self) -> u64
Timestamp used for list ordering in milliseconds since epoch (UTC).
Field 18: last_activity_at_unix_ms
Sourcepub fn owner_account_id(&self) -> u64
pub fn owner_account_id(&self) -> u64
Public account or subaccount identifier that owns this flow.
Field 19: owner_account_id
Sourcepub fn smart_account_address(&self) -> &str
pub fn smart_account_address(&self) -> &str
Smart account address on Polyester Chain when known.
Field 20: smart_account_address
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 21: zipper_reason
Trait Implementations§
Source§impl AsRef<OwnedView<FlowTxMatchViewView<'static>>> for FlowTxMatchViewOwnedView
impl AsRef<OwnedView<FlowTxMatchViewView<'static>>> for FlowTxMatchViewOwnedView
Source§fn as_ref(&self) -> &OwnedView<FlowTxMatchViewView<'static>>
fn as_ref(&self) -> &OwnedView<FlowTxMatchViewView<'static>>
Source§impl Clone for FlowTxMatchViewOwnedView
impl Clone for FlowTxMatchViewOwnedView
Source§fn clone(&self) -> FlowTxMatchViewOwnedView
fn clone(&self) -> FlowTxMatchViewOwnedView
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more