pub struct ConsignReq<T: ConsignmentType> {
pub client_id: ClientId,
pub contract_id: ContractId,
pub include: BTreeSet<TransitionType>,
pub outpoints: OutpointFilter,
pub _phantom: T,
}Fields§
§client_id: ClientId§contract_id: ContractId§include: BTreeSet<TransitionType>§outpoints: OutpointFilter§_phantom: TTrait Implementations§
Source§impl<T: Clone + ConsignmentType> Clone for ConsignReq<T>
impl<T: Clone + ConsignmentType> Clone for ConsignReq<T>
Source§fn clone(&self) -> ConsignReq<T>
fn clone(&self) -> ConsignReq<T>
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<T: Debug + ConsignmentType> Debug for ConsignReq<T>
impl<T: Debug + ConsignmentType> Debug for ConsignReq<T>
Source§impl<T: ConsignmentType> Display for ConsignReq<T>
impl<T: ConsignmentType> Display for ConsignReq<T>
Source§impl<T: ConsignmentType> StrictDecode for ConsignReq<T>
impl<T: ConsignmentType> StrictDecode for ConsignReq<T>
Source§fn strict_decode<D: Read>(d: D) -> Result<Self, Error>
fn strict_decode<D: Read>(d: D) -> Result<Self, Error>
Decode with the given
std::io::Read instance; must either
construct an instance or return implementation-specific error type.Source§fn strict_deserialize(data: impl AsRef<[u8]>) -> Result<Self, Error>
fn strict_deserialize(data: impl AsRef<[u8]>) -> Result<Self, Error>
Tries to deserialize byte array into the current type using
StrictDecode::strict_decode. If there are some data remains in the
buffer once deserialization is completed, fails with
Error::DataNotEntirelyConsumed. Use io::Cursor over the buffer and
StrictDecode::strict_decode to avoid such failures.Source§fn strict_file_load(path: impl AsRef<Path>) -> Result<Self, Error>
fn strict_file_load(path: impl AsRef<Path>) -> Result<Self, Error>
Reads data from file at
path and reconstructs object from it. Fails
with Error::DataNotEntirelyConsumed if file contains remaining
data after the object reconstruction.Source§impl<T: ConsignmentType> StrictEncode for ConsignReq<T>
impl<T: ConsignmentType> StrictEncode for ConsignReq<T>
Source§fn strict_encode<E: Write>(&self, e: E) -> Result<usize, Error>
fn strict_encode<E: Write>(&self, e: E) -> Result<usize, Error>
Encode with the given
std::io::Write instance; must return result
with either amount of bytes encoded – or implementation-specific
error type.Source§fn strict_serialize(&self) -> Result<Vec<u8>, Error>
fn strict_serialize(&self) -> Result<Vec<u8>, Error>
Serializes data as a byte array using
StrictEncode::strict_encode
functionAuto Trait Implementations§
impl<T> Freeze for ConsignReq<T>where
T: Freeze,
impl<T> RefUnwindSafe for ConsignReq<T>where
T: RefUnwindSafe,
impl<T> Send for ConsignReq<T>where
T: Send,
impl<T> Sync for ConsignReq<T>where
T: Sync,
impl<T> Unpin for ConsignReq<T>where
T: Unpin,
impl<T> UnwindSafe for ConsignReq<T>where
T: 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