Response

Struct Response 

Source
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

Source

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.

Source

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

Source

pub fn serialize(&self) -> Vec<u8>

Source

pub fn deserialize(bytes: Vec<u8>) -> Result<Self, DecodeError>

Source

pub fn empty_success() -> Response

Source

pub fn from_error_info(error_info: ErrorInfo) -> Response

Source

pub fn with_metadata(self, node_metadata: NodeMetadata) -> Response

Source

pub fn as_error_info(&self) -> Result<(), ErrorInfo>

Source

pub fn with_error_info(self) -> Result<Self, ErrorInfo>

Trait Implementations§

Source§

impl Clone for Response

Source§

fn clone(&self) -> Response

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 Debug for Response

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for Response

Source§

fn default() -> Self

Returns the “default value” for a type. Read more
Source§

impl<'de> Deserialize<'de> for Response

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 Hash for Response

Source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · Source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
Source§

impl HashClear for Response

Source§

fn hash_clear(&mut self)

Source§

impl Message for Response

Source§

fn encoded_len(&self) -> usize

Returns the encoded length of the message without a length delimiter.
Source§

fn clear(&mut self)

Clears the message, resetting all fields to their default.
Source§

fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>
where B: BufMut, Self: Sized,

Encodes the message to a buffer. Read more
Source§

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>
where B: BufMut, Self: Sized,

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,

Encodes the message with a length-delimiter to a newly allocated buffer.
Source§

fn decode<B>(buf: B) -> Result<Self, DecodeError>
where B: Buf, Self: Default,

Decodes an instance of the message from a buffer. Read more
Source§

fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>
where B: Buf, Self: Default,

Decodes a length-delimited instance of the message from the buffer.
Source§

fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>
where B: Buf, Self: Sized,

Decodes an instance of the message from a buffer, and merges it into self. Read more
Source§

fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>
where B: Buf, Self: Sized,

Decodes a length-delimited instance of the message from buffer, and merges it into self.
Source§

impl PartialEq for Response

Source§

fn eq(&self, other: &Response) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl Serialize for Response

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 Eq for Response

Source§

impl StructuralPartialEq for Response

Auto Trait Implementations§

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> EasyJson for T
where T: Serialize,

Source§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

Source§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
Source§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

Source§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
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> IntoEither for T

Source§

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 more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

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
Source§

impl<T> ProtoHashable for T
where T: HashClear + Clone + Message + Default,

Source§

fn calculate_hash(&self) -> Hash

Source§

fn div_mod(&self, bucket: usize) -> i64

Source§

impl<T> ProtoSerde for T
where T: Message + Default,

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> SerdeCborConverters for T
where T: Serialize + for<'a> Deserialize<'a>,

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<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

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