pub struct GetIntentResponse {
pub intent: Option<Intent>,
pub intents: Option<Vec<Intent>>,
}Expand description
GetIntentResponse : The repeated intents field is always populated with the matching results. The singular intent field is only set for backward compatibility when the request uses the txid filter, in which case it mirrors intents[0].
Fields§
§intent: Option<Intent>§intents: Option<Vec<Intent>>Implementations§
Source§impl GetIntentResponse
impl GetIntentResponse
Sourcepub fn new() -> GetIntentResponse
pub fn new() -> GetIntentResponse
The repeated intents field is always populated with the matching results. The singular intent field is only set for backward compatibility when the request uses the txid filter, in which case it mirrors intents[0].
Trait Implementations§
Source§impl Clone for GetIntentResponse
impl Clone for GetIntentResponse
Source§fn clone(&self) -> GetIntentResponse
fn clone(&self) -> GetIntentResponse
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for GetIntentResponse
impl Debug for GetIntentResponse
Source§impl Default for GetIntentResponse
impl Default for GetIntentResponse
Source§fn default() -> GetIntentResponse
fn default() -> GetIntentResponse
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for GetIntentResponse
impl<'de> Deserialize<'de> for GetIntentResponse
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 PartialEq for GetIntentResponse
impl PartialEq for GetIntentResponse
Source§fn eq(&self, other: &GetIntentResponse) -> bool
fn eq(&self, other: &GetIntentResponse) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for GetIntentResponse
impl Serialize for GetIntentResponse
impl StructuralPartialEq for GetIntentResponse
Auto Trait Implementations§
impl Freeze for GetIntentResponse
impl RefUnwindSafe for GetIntentResponse
impl Send for GetIntentResponse
impl Sync for GetIntentResponse
impl Unpin for GetIntentResponse
impl UnsafeUnpin for GetIntentResponse
impl UnwindSafe for GetIntentResponse
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