pub struct ScriptJson {
pub json: Option<Value>,
}Fields§
§json: Option<Value>JSON contents of the timelock script, null for plutus scripts
Implementations§
Source§impl ScriptJson
impl ScriptJson
pub fn new(json: Option<Value>) -> ScriptJson
Trait Implementations§
Source§impl Clone for ScriptJson
impl Clone for ScriptJson
Source§fn clone(&self) -> ScriptJson
fn clone(&self) -> ScriptJson
Returns a copy of the value. Read more
1.0.0 · 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 ScriptJson
impl Debug for ScriptJson
Source§impl Default for ScriptJson
impl Default for ScriptJson
Source§fn default() -> ScriptJson
fn default() -> ScriptJson
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ScriptJson
impl<'de> Deserialize<'de> for ScriptJson
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 PartialEq for ScriptJson
impl PartialEq for ScriptJson
Source§impl Serialize for ScriptJson
impl Serialize for ScriptJson
impl StructuralPartialEq for ScriptJson
Auto Trait Implementations§
impl Freeze for ScriptJson
impl RefUnwindSafe for ScriptJson
impl Send for ScriptJson
impl Sync for ScriptJson
impl Unpin for ScriptJson
impl UnwindSafe for ScriptJson
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