pub struct Response {Show 36 fields
pub response_metadata: Option<ResponseMetadata>,
pub resolve_hash_response: Option<ResolveHashResponse>,
pub download_response: Option<DownloadResponse>,
pub about_node_response: Option<AboutNodeResponse>,
pub get_peers_info_response: Option<GetPeersInfoResponse>,
pub node_metadata: Option<NodeMetadata>,
pub proof: Option<Proof>,
pub initiate_keygen_response: Option<InitiateMultipartyKeygenResponse>,
pub initiate_signing_response: Option<InitiateMultipartySigningResponse>,
pub submit_transaction_response: Option<SubmitTransactionResponse>,
pub utxo_conflict_resolve_response: Option<UtxoConflictResolveResponse>,
pub query_observation_proof_response: Option<QueryObservationProofResponse>,
pub hash_search_response: Option<HashSearchResponse>,
pub health_response: Option<HealthResponse>,
pub get_contract_state_marker_response: Option<ContractStateMarker>,
pub resolve_code_response: Option<ResolveCodeResponse>,
pub utxo_valid_response: Option<UtxoValidResponse>,
pub recent_discovery_transactions_response: Option<RecentDiscoveryTransactionsResponse>,
pub lookup_transaction_response: Option<Transaction>,
pub recent_transaction_and_observation_response: Vec<TransactionAndObservations>,
pub genesis_response: Option<Transaction>,
pub faucet_response: Option<FaucetResponse>,
pub get_parties_info_response: Option<GetPartiesInfoResponse>,
pub batch_transaction_resolve_response: Option<BatchTransactionResolveResponse>,
pub get_address_info_public_key_response: Option<AddressInfo>,
pub get_active_party_key_response: Option<PublicKey>,
pub get_seeds_response: Vec<Seed>,
pub get_public_key_balance_response: Option<CurrencyAmount>,
pub keep_alive_response: Option<KeepAliveResponse>,
pub port_open_response: Option<PortOpenResponse>,
pub multiparty_check_ready_response: Option<bool>,
pub get_solana_address_response: Option<Address>,
pub monero_multisig_formation_response: Option<String>,
pub multisig_response: Option<MultisigResponse>,
pub get_party_metadata_response: Option<GetPartyMetadataResponse>,
pub extended_node_metadata_response: Option<ExtendedNodeMetadataResponse>,
}Fields§
§response_metadata: Option<ResponseMetadata>§resolve_hash_response: Option<ResolveHashResponse>Pull in other response classes if needed.
download_response: Option<DownloadResponse>§about_node_response: Option<AboutNodeResponse>§get_peers_info_response: Option<GetPeersInfoResponse>§node_metadata: Option<NodeMetadata>§proof: Option<Proof>§initiate_keygen_response: Option<InitiateMultipartyKeygenResponse>§initiate_signing_response: Option<InitiateMultipartySigningResponse>§submit_transaction_response: Option<SubmitTransactionResponse>§utxo_conflict_resolve_response: Option<UtxoConflictResolveResponse>§query_observation_proof_response: Option<QueryObservationProofResponse>§hash_search_response: Option<HashSearchResponse>§health_response: Option<HealthResponse>§get_contract_state_marker_response: Option<ContractStateMarker>§resolve_code_response: Option<ResolveCodeResponse>§utxo_valid_response: Option<UtxoValidResponse>§recent_discovery_transactions_response: Option<RecentDiscoveryTransactionsResponse>§lookup_transaction_response: Option<Transaction>§recent_transaction_and_observation_response: Vec<TransactionAndObservations>§genesis_response: Option<Transaction>§faucet_response: Option<FaucetResponse>§get_parties_info_response: Option<GetPartiesInfoResponse>§batch_transaction_resolve_response: Option<BatchTransactionResolveResponse>§get_address_info_public_key_response: Option<AddressInfo>§get_active_party_key_response: Option<PublicKey>§get_seeds_response: Vec<Seed>§get_public_key_balance_response: Option<CurrencyAmount>§keep_alive_response: Option<KeepAliveResponse>§port_open_response: Option<PortOpenResponse>§multiparty_check_ready_response: Option<bool>§get_solana_address_response: Option<Address>§monero_multisig_formation_response: Option<String>§multisig_response: Option<MultisigResponse>§get_party_metadata_response: Option<GetPartyMetadataResponse>§extended_node_metadata_response: Option<ExtendedNodeMetadataResponse>Implementations§
Source§impl Response
impl Response
Sourcepub fn multiparty_check_ready_response(&self) -> bool
pub fn multiparty_check_ready_response(&self) -> bool
Returns the value of multiparty_check_ready_response, or the default value if multiparty_check_ready_response is unset.
Sourcepub fn monero_multisig_formation_response(&self) -> &str
pub fn monero_multisig_formation_response(&self) -> &str
Returns the value of monero_multisig_formation_response, or the default value if monero_multisig_formation_response is unset.
Source§impl Response
impl Response
pub fn serialize(&self) -> Vec<u8> ⓘ
pub fn deserialize(bytes: Vec<u8>) -> Result<Self, DecodeError>
pub fn empty_success() -> Response
pub fn from_error_info(error_info: ErrorInfo) -> Response
pub fn with_metadata(self, node_metadata: NodeMetadata) -> Response
pub fn as_error_info(&self) -> Result<(), ErrorInfo>
pub fn with_error_info(self) -> Result<Self, ErrorInfo>
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Response
impl<'de> Deserialize<'de> for Response
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 Message for Response
impl Message for Response
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Returns the encoded length of the message without a length delimiter.
Source§fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>
fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>
Encodes the message to a buffer. Read more
Source§fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Encodes the message to a newly allocated buffer.
Source§fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError>
fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError>
Encodes the message with a length-delimiter to a buffer. Read more
Source§fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Encodes the message with a length-delimiter to a newly allocated buffer.
Source§fn decode<B>(buf: B) -> Result<Self, DecodeError>
fn decode<B>(buf: B) -> Result<Self, DecodeError>
Decodes an instance of the message from a buffer. Read more
Source§fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>
fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>
Decodes a length-delimited instance of the message from the buffer.
Source§fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>
fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>
Decodes an instance of the message from a buffer, and merges it into
self. Read moreSource§fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>
fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>
Decodes a length-delimited instance of the message from buffer, and
merges it into
self.impl Eq for Response
impl StructuralPartialEq for Response
Auto Trait Implementations§
impl Freeze for Response
impl RefUnwindSafe for Response
impl Send for Response
impl Sync for Response
impl Unpin for Response
impl UnwindSafe for Response
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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.Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more