pub struct ClosedContract {
pub attestations: Option<Vec<OracleAttestation>>,
pub signed_cet: Option<Transaction>,
pub contract_id: ContractId,
pub temporary_contract_id: ContractId,
pub counter_party_id: PublicKey,
pub pnl: i64,
}Expand description
Information about a contract that was closed by a CET that was confirmed on the blockchain.
Fields§
§attestations: Option<Vec<OracleAttestation>>The attestations that were used to decrypt the broadcast CET.
signed_cet: Option<Transaction>The signed version of the CET that was broadcast.
contract_id: ContractIdThe id of the contract
temporary_contract_id: ContractIdThe temporary id of the contract.
counter_party_id: PublicKeyThe public key of the counter-party’s node.
pnl: i64The profit and loss for the given contract
Trait Implementations§
Source§impl Clone for ClosedContract
impl Clone for ClosedContract
Source§fn clone(&self) -> ClosedContract
fn clone(&self) -> ClosedContract
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 Readable for ClosedContract
impl Readable for ClosedContract
Source§impl Writeable for ClosedContract
impl Writeable for ClosedContract
Auto Trait Implementations§
impl Freeze for ClosedContract
impl RefUnwindSafe for ClosedContract
impl Send for ClosedContract
impl Sync for ClosedContract
impl Unpin for ClosedContract
impl UnwindSafe for ClosedContract
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