#[non_exhaustive]pub struct Resolved {
pub call: String,
pub resolutions: Vec<Resolution>,
pub aliases_tx: Option<String>,
}Expand description
The resolved member of an envelope (5.5, 16.7, spec-0.5.0): what a short call resolved.
Exactly call, resolutions and optionally aliases_tx.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.call: StringThe full canonical call (16.7), a non-empty string.
resolutions: Vec<Resolution>What was resolved, in the mesh’s order.
aliases_tx: Option<String>The instant of the alias snapshot used.
Implementations§
Source§impl Resolved
impl Resolved
Sourcepub fn new(call: &str, resolutions: Vec<Resolution>) -> Result<Resolved>
pub fn new(call: &str, resolutions: Vec<Resolution>) -> Result<Resolved>
call (non-empty) and its resolutions; E_ENVELOPE otherwise.
Sourcepub fn with_aliases_tx(self, instant: &str) -> Result<Resolved>
pub fn with_aliases_tx(self, instant: &str) -> Result<Resolved>
With aliases_tx, the instant of the alias snapshot used (E_ENVELOPE when it is not
an instant).
Trait Implementations§
impl Eq for Resolved
impl StructuralPartialEq for Resolved
Auto Trait Implementations§
impl Forget for Resolved
impl Freeze for Resolved
impl Move for Resolved
impl RefUnwindSafe for Resolved
impl Send for Resolved
impl Sync for Resolved
impl Unpin for Resolved
impl UnsafeUnpin for Resolved
impl UnwindSafe for Resolved
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