pub struct OperationSeals<Seal: RgbSeal> {
pub operation: Operation,
pub defined_seals: SmallOrdMap<u16, Seal::Definition>,
pub witness: Option<SealWitness<Seal>>,
}
Expand description
Combination of an operation with operation-defined seals.
An operation contains only AuthToken
’s, which are commitments to seal definitions.
Hence, we have to separately include a full seal definition next to the operation data.
Fields§
§operation: Operation
The operation.
defined_seals: SmallOrdMap<u16, Seal::Definition>
Seals defined by an operation.
witness: Option<SealWitness<Seal>>
An optional witness for the closing of the operation input seals.
Trait Implementations§
Source§impl<Seal: RgbSeal> Clone for OperationSeals<Seal>
impl<Seal: RgbSeal> Clone for OperationSeals<Seal>
Source§impl<'de, Seal: RgbSeal> Deserialize<'de> for OperationSeals<Seal>where
Seal::Definition: Serialize + for<'d> Deserialize<'d>,
Seal::PubWitness: Serialize + for<'d> Deserialize<'d>,
Seal::CliWitness: Serialize + for<'d> Deserialize<'d>,
impl<'de, Seal: RgbSeal> Deserialize<'de> for OperationSeals<Seal>where
Seal::Definition: Serialize + for<'d> Deserialize<'d>,
Seal::PubWitness: Serialize + for<'d> Deserialize<'d>,
Seal::CliWitness: Serialize + for<'d> Deserialize<'d>,
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<Seal: RgbSeal> Serialize for OperationSeals<Seal>where
Seal::Definition: Serialize + for<'d> Deserialize<'d>,
Seal::PubWitness: Serialize + for<'d> Deserialize<'d>,
Seal::CliWitness: Serialize + for<'d> Deserialize<'d>,
impl<Seal: RgbSeal> Serialize for OperationSeals<Seal>where
Seal::Definition: Serialize + for<'d> Deserialize<'d>,
Seal::PubWitness: Serialize + for<'d> Deserialize<'d>,
Seal::CliWitness: Serialize + for<'d> Deserialize<'d>,
Source§impl<Seal: RgbSeal> StrictDecode for OperationSeals<Seal>
impl<Seal: RgbSeal> StrictDecode for OperationSeals<Seal>
fn strict_decode(reader: &mut impl TypedRead) -> Result<Self, DecodeError>
fn strict_read(reader: impl ReadRaw) -> Result<Self, DecodeError>
Source§impl<Seal: RgbSeal> StrictDumb for OperationSeals<Seal>
impl<Seal: RgbSeal> StrictDumb for OperationSeals<Seal>
fn strict_dumb() -> Self
Source§impl<Seal: RgbSeal> StrictEncode for OperationSeals<Seal>
impl<Seal: RgbSeal> StrictEncode for OperationSeals<Seal>
fn strict_encode<W: TypedWrite>(&self, writer: W) -> Result<W>
fn strict_write(&self, writer: impl WriteRaw) -> Result<(), Error>
Source§impl<Seal: RgbSeal> StrictStruct for OperationSeals<Seal>
impl<Seal: RgbSeal> StrictStruct for OperationSeals<Seal>
const ALL_FIELDS: &'static [&'static str]
fn strict_check_fields()
fn strict_type_info() -> TypeInfo<Self>
Source§impl<Seal: RgbSeal> StrictType for OperationSeals<Seal>
impl<Seal: RgbSeal> StrictType for OperationSeals<Seal>
const STRICT_LIB_NAME: &'static str = LIB_NAME_RGB
fn strict_name() -> Option<TypeName>
impl<Seal: RgbSeal> StrictProduct for OperationSeals<Seal>
Auto Trait Implementations§
impl<Seal> Freeze for OperationSeals<Seal>
impl<Seal> RefUnwindSafe for OperationSeals<Seal>where
<Seal as SingleUseSeal>::Message: Sized,
<Seal as RgbSeal>::Published: RefUnwindSafe,
<Seal as RgbSeal>::Client: RefUnwindSafe,
Seal: RefUnwindSafe,
<Seal as RgbSeal>::Definition: RefUnwindSafe,
impl<Seal> Send for OperationSeals<Seal>
impl<Seal> Sync for OperationSeals<Seal>
impl<Seal> Unpin for OperationSeals<Seal>
impl<Seal> UnwindSafe for OperationSeals<Seal>where
<Seal as SingleUseSeal>::Message: Sized,
<Seal as RgbSeal>::Definition: RefUnwindSafe,
<Seal as RgbSeal>::Published: UnwindSafe,
<Seal as RgbSeal>::Client: UnwindSafe,
Seal: UnwindSafe,
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