pub struct OutputValidatorRef(/* private fields */);Expand description
Typed output-string wrapper for OutputValidatorRef. Use it where output contracts need stable schema, hash, or validator refs; constructing it is data-only and performs no side effects.
Implementations§
Source§impl OutputValidatorRef
impl OutputValidatorRef
Sourcepub fn new(value: impl Into<String>) -> Self
pub fn new(value: impl Into<String>) -> Self
Creates a new records::output value with explicit caller-provided inputs. This constructor is data-only and performs no I/O or external side effects.
§Panics
Panics if constructor invariants fail, such as invalid identifier
text or constructor-specific bounds. Use a fallible constructor such as
try_new when one is available for untrusted input.
Trait Implementations§
Source§impl Clone for OutputValidatorRef
impl Clone for OutputValidatorRef
Source§fn clone(&self) -> OutputValidatorRef
fn clone(&self) -> OutputValidatorRef
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 OutputValidatorRef
impl Debug for OutputValidatorRef
Source§impl<'de> Deserialize<'de> for OutputValidatorRef
impl<'de> Deserialize<'de> for OutputValidatorRef
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 Display for OutputValidatorRef
impl Display for OutputValidatorRef
impl Eq for OutputValidatorRef
Source§impl Hash for OutputValidatorRef
impl Hash for OutputValidatorRef
Source§impl Ord for OutputValidatorRef
impl Ord for OutputValidatorRef
Source§fn cmp(&self, other: &OutputValidatorRef) -> Ordering
fn cmp(&self, other: &OutputValidatorRef) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for OutputValidatorRef
impl PartialEq for OutputValidatorRef
Source§fn eq(&self, other: &OutputValidatorRef) -> bool
fn eq(&self, other: &OutputValidatorRef) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for OutputValidatorRef
impl PartialOrd for OutputValidatorRef
Source§impl Serialize for OutputValidatorRef
impl Serialize for OutputValidatorRef
impl StructuralPartialEq for OutputValidatorRef
Auto Trait Implementations§
impl Freeze for OutputValidatorRef
impl RefUnwindSafe for OutputValidatorRef
impl Send for OutputValidatorRef
impl Sync for OutputValidatorRef
impl Unpin for OutputValidatorRef
impl UnsafeUnpin for OutputValidatorRef
impl UnwindSafe for OutputValidatorRef
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