Request

Struct Request 

Source
pub struct Request {
Show 50 fields pub gossip_transaction_request: Option<GossipTransactionRequest>, pub gossip_observation_request: Option<GossipObservationRequest>, pub resolve_hash_request: Option<ResolveHashRequest>, pub download_request: Option<DownloadRequest>, pub about_node_request: Option<AboutNodeRequest>, pub proof: Option<Proof>, pub node_metadata: Option<NodeMetadata>, pub get_peers_info_request: Option<GetPeersInfoRequest>, pub initiate_keygen: Option<InitiateMultipartyKeygenRequest>, pub initiate_signing: Option<InitiateMultipartySigningRequest>, pub submit_transaction_request: Option<SubmitTransactionRequest>, pub utxo_conflict_resolve_request: Option<UtxoConflictResolveRequest>, pub query_observation_proof_request: Option<QueryObservationProofRequest>, pub hash_search_request: Option<HashSearchRequest>, pub trace_id: Option<String>, pub trace: Option<bool>, pub multiparty_authentication_request: Option<MultipartyAuthenticationRequest>, pub health_request: Option<HealthRequest>, pub get_node_transaction_request: Option<GetNodeTransactionRequest>, pub get_contract_state_marker_request: Option<GetContractStateMarkerRequest>, pub resolve_code_request: Option<Address>, pub abridged_node_metadata: Option<AbridgedNodeMetadata>, pub gossip_observation_proof: Vec<ObservationProof>, pub utxo_valid_request: Option<UtxoId>, pub recent_transactions_request: Option<RecentDiscoveryTransactionsRequest>, pub lookup_transaction_request: Option<Hash>, pub recent_transaction_and_observation_request: Option<RecentTransactionAndObservationRequest>, pub genesis_request: Option<GenesisRequest>, pub faucet_request: Option<FaucetRequest>, pub get_parties_info_request: Option<GetPartiesInfoRequest>, pub origin: Option<String>, pub batch_transaction_resolve_request: Option<BatchTransactionResolveRequest>, pub get_address_info_public_key_request: Option<PublicKey>, pub get_active_party_key_request: Option<GetActivePartyKeyRequest>, pub get_seeds_request: Option<GetSeedsRequest>, pub get_public_key_balance_request: Option<PublicKey>, pub keep_alive_request: Option<KeepAliveRequest>, pub response: Option<Response>, pub port_open_request: Option<PortOpenRequest>, pub gui_init_request: Option<GuiInitRequest>, pub multiparty_check_ready_request: Option<MultipartyCheckReadyRequest>, pub get_solana_address: Option<GetSolanaAddress>, pub monero_multisig_formation_request: Option<MoneroMultisigFormationRequest>, pub multisig_request: Option<MultisigRequest>, pub notify_multisig_creation_request: Option<NotifyMultisigCreationRequest>, pub get_party_metadata_request: Option<GetPartyMetadataRequest>, pub extended_node_metadata_request: Option<ExtendedNodeMetadataRequest>, pub request_client_timeout_millis: Option<i64>, pub subscribe: Option<Subscribe>, pub event_notify: Option<EventNotify>,
}

Fields§

§gossip_transaction_request: Option<GossipTransactionRequest>§gossip_observation_request: Option<GossipObservationRequest>§resolve_hash_request: Option<ResolveHashRequest>§download_request: Option<DownloadRequest>§about_node_request: Option<AboutNodeRequest>§proof: Option<Proof>§node_metadata: Option<NodeMetadata>§get_peers_info_request: Option<GetPeersInfoRequest>§initiate_keygen: Option<InitiateMultipartyKeygenRequest>§initiate_signing: Option<InitiateMultipartySigningRequest>§submit_transaction_request: Option<SubmitTransactionRequest>§utxo_conflict_resolve_request: Option<UtxoConflictResolveRequest>§query_observation_proof_request: Option<QueryObservationProofRequest>§hash_search_request: Option<HashSearchRequest>§trace_id: Option<String>§trace: Option<bool>§multiparty_authentication_request: Option<MultipartyAuthenticationRequest>§health_request: Option<HealthRequest>§get_node_transaction_request: Option<GetNodeTransactionRequest>§get_contract_state_marker_request: Option<GetContractStateMarkerRequest>§resolve_code_request: Option<Address>§abridged_node_metadata: Option<AbridgedNodeMetadata>§gossip_observation_proof: Vec<ObservationProof>§utxo_valid_request: Option<UtxoId>§recent_transactions_request: Option<RecentDiscoveryTransactionsRequest>§lookup_transaction_request: Option<Hash>§recent_transaction_and_observation_request: Option<RecentTransactionAndObservationRequest>§genesis_request: Option<GenesisRequest>§faucet_request: Option<FaucetRequest>§get_parties_info_request: Option<GetPartiesInfoRequest>§origin: Option<String>§batch_transaction_resolve_request: Option<BatchTransactionResolveRequest>§get_address_info_public_key_request: Option<PublicKey>§get_active_party_key_request: Option<GetActivePartyKeyRequest>§get_seeds_request: Option<GetSeedsRequest>§get_public_key_balance_request: Option<PublicKey>§keep_alive_request: Option<KeepAliveRequest>§response: Option<Response>§port_open_request: Option<PortOpenRequest>§gui_init_request: Option<GuiInitRequest>§multiparty_check_ready_request: Option<MultipartyCheckReadyRequest>§get_solana_address: Option<GetSolanaAddress>§monero_multisig_formation_request: Option<MoneroMultisigFormationRequest>§multisig_request: Option<MultisigRequest>§notify_multisig_creation_request: Option<NotifyMultisigCreationRequest>§get_party_metadata_request: Option<GetPartyMetadataRequest>§extended_node_metadata_request: Option<ExtendedNodeMetadataRequest>§request_client_timeout_millis: Option<i64>§subscribe: Option<Subscribe>§event_notify: Option<EventNotify>

MoneroMultisigTransferRequest monero_multisig_transfer_request = 50;

Implementations§

Source§

impl Request

Source

pub fn trace_id(&self) -> &str

Returns the value of trace_id, or the default value if trace_id is unset.

Source

pub fn trace(&self) -> bool

Returns the value of trace, or the default value if trace is unset.

Source

pub fn origin(&self) -> &str

Returns the value of origin, or the default value if origin is unset.

Source

pub fn request_client_timeout_millis(&self) -> i64

Returns the value of request_client_timeout_millis, or the default value if request_client_timeout_millis is unset.

Source§

impl Request

Source

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

Source

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

Source

pub fn empty() -> Self

Source

pub fn about(&mut self) -> Self

Source

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

Source

pub fn auth_required(&self) -> bool

Trait Implementations§

Source§

impl Clone for Request

Source§

fn clone(&self) -> Request

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 Request

Source§

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

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

impl Default for Request

Source§

fn default() -> Self

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

impl<'de> Deserialize<'de> for Request

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 Request

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 Request

Source§

fn hash_clear(&mut self)

Source§

impl Message for Request

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 Request

Source§

fn eq(&self, other: &Request) -> 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 Request

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 Request

Source§

impl StructuralPartialEq for Request

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