pub struct ContractTerms {
pub text: RicardianContract,
pub media: Option<Attachment>,
}Fields§
§text: RicardianContract§media: Option<Attachment>Implementations§
Source§impl ContractTerms
impl ContractTerms
pub fn from_strict_val_unchecked(value: &StrictVal) -> ContractTerms
Trait Implementations§
Source§impl Clone for ContractTerms
impl Clone for ContractTerms
Source§fn clone(&self) -> ContractTerms
fn clone(&self) -> ContractTerms
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 ContractTerms
impl Debug for ContractTerms
Source§impl<'de> Deserialize<'de> for ContractTerms
impl<'de> Deserialize<'de> for ContractTerms
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<ContractTerms, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<ContractTerms, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for ContractTerms
Source§impl Hash for ContractTerms
impl Hash for ContractTerms
Source§impl PartialEq for ContractTerms
impl PartialEq for ContractTerms
Source§impl Serialize for ContractTerms
impl Serialize for ContractTerms
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Source§impl StrictDecode for ContractTerms
impl StrictDecode for ContractTerms
fn strict_decode( reader: &mut impl TypedRead, ) -> Result<ContractTerms, DecodeError>
fn strict_read(reader: impl ReadRaw) -> Result<Self, DecodeError>
Source§impl StrictDeserialize for ContractTerms
impl StrictDeserialize for ContractTerms
fn from_strict_serialized<const MAX: usize>( ast_data: Confined<Vec<u8>, 0, MAX>, ) -> Result<Self, DeserializeError>
fn strict_deserialize_from_file<const MAX: usize>( path: impl AsRef<Path>, ) -> Result<Self, DeserializeError>
Source§impl StrictDumb for ContractTerms
impl StrictDumb for ContractTerms
fn strict_dumb() -> ContractTerms
Source§impl StrictEncode for ContractTerms
impl StrictEncode for ContractTerms
fn strict_encode<W>(&self, writer: W) -> Result<W, Error>where
W: TypedWrite,
fn strict_write(&self, writer: impl WriteRaw) -> Result<(), Error>
impl StrictProduct for ContractTerms
Source§impl StrictSerialize for ContractTerms
impl StrictSerialize for ContractTerms
fn strict_serialized_len<const MAX: usize>(&self) -> Result<usize, Error>
fn to_strict_serialized<const MAX: usize>( &self, ) -> Result<Confined<Vec<u8>, 0, MAX>, SerializeError>
fn strict_serialize_to_file<const MAX: usize>( &self, path: impl AsRef<Path>, ) -> Result<(), SerializeError>
Source§impl StrictStruct for ContractTerms
impl StrictStruct for ContractTerms
const ALL_FIELDS: &'static [&'static str]
fn strict_check_fields()
fn strict_type_info() -> TypeInfo<Self>
Source§impl StrictType for ContractTerms
impl StrictType for ContractTerms
const STRICT_LIB_NAME: &'static str = LIB_NAME_RGB_CONTRACT
fn strict_name() -> Option<TypeName>
impl StructuralPartialEq for ContractTerms
Auto Trait Implementations§
impl Freeze for ContractTerms
impl RefUnwindSafe for ContractTerms
impl Send for ContractTerms
impl Sync for ContractTerms
impl Unpin for ContractTerms
impl UnsafeUnpin for ContractTerms
impl UnwindSafe for ContractTerms
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.