pub struct Validator {
pub title: String,
pub description: Option<String>,
pub compiled_code: Option<String>,
pub hash: Option<String>,
pub datum: Option<Argument>,
pub redeemer: Option<Argument>,
pub parameters: Option<Vec<Parameter>>,
}
Expand description
Represents a validator in the blueprint, including its title, description, compiled code, hash, datum, redeemer, and parameters.
Fields§
§title: String
§description: Option<String>
§compiled_code: Option<String>
§hash: Option<String>
§datum: Option<Argument>
§redeemer: Option<Argument>
§parameters: Option<Vec<Parameter>>
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Validator
impl<'de> Deserialize<'de> for Validator
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
Auto Trait Implementations§
impl Freeze for Validator
impl RefUnwindSafe for Validator
impl Send for Validator
impl Sync for Validator
impl Unpin for Validator
impl UnwindSafe for Validator
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