Struct OperationSeals

Source
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>
where Seal::PubWitness: Clone, Seal::CliWitness: Clone,

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
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>,

Source§

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>,

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl<Seal: RgbSeal> StrictDecode for OperationSeals<Seal>

Source§

fn strict_decode(reader: &mut impl TypedRead) -> Result<Self, DecodeError>

Source§

fn strict_read(reader: impl ReadRaw) -> Result<Self, DecodeError>

Source§

impl<Seal: RgbSeal> StrictDumb for OperationSeals<Seal>

Source§

fn strict_dumb() -> Self

Source§

impl<Seal: RgbSeal> StrictEncode for OperationSeals<Seal>

Source§

fn strict_encode<W: TypedWrite>(&self, writer: W) -> Result<W>

Source§

fn strict_write(&self, writer: impl WriteRaw) -> Result<(), Error>

Source§

impl<Seal: RgbSeal> StrictStruct for OperationSeals<Seal>

Source§

impl<Seal: RgbSeal> StrictType for OperationSeals<Seal>

Source§

const STRICT_LIB_NAME: &'static str = LIB_NAME_RGB

Source§

fn strict_name() -> Option<TypeName>

Source§

impl<Seal: RgbSeal> StrictProduct for OperationSeals<Seal>

Auto Trait Implementations§

§

impl<Seal> Freeze for OperationSeals<Seal>
where <Seal as SingleUseSeal>::Message: Sized, <Seal as RgbSeal>::Published: Freeze, <Seal as RgbSeal>::Client: Freeze,

§

impl<Seal> RefUnwindSafe for OperationSeals<Seal>

§

impl<Seal> Send for OperationSeals<Seal>
where <Seal as SingleUseSeal>::Message: Sized, <Seal as RgbSeal>::Published: Send, <Seal as RgbSeal>::Client: Send, Seal: Send, <Seal as RgbSeal>::Definition: Send,

§

impl<Seal> Sync for OperationSeals<Seal>
where <Seal as SingleUseSeal>::Message: Sized, <Seal as RgbSeal>::Published: Sync, <Seal as RgbSeal>::Client: Sync, Seal: Sync, <Seal as RgbSeal>::Definition: Sync,

§

impl<Seal> Unpin for OperationSeals<Seal>
where <Seal as SingleUseSeal>::Message: Sized, <Seal as RgbSeal>::Published: Unpin, <Seal as RgbSeal>::Client: Unpin, Seal: Unpin,

§

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> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V

Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,