pub struct CallResponse {
pub result: Value,
pub idempotent: bool,
}Expand description
CallResponse : CallResponse contains the result of a /call invocation.
Fields§
§result: ValueResult contains the result of the /call invocation. This result will not be inspected or interpreted by Rosetta tooling and is left to the caller to decode.
idempotent: boolIdempotent indicates that if /call is invoked with the same CallRequest again, at any point in time, it will return the same CallResponse. Integrators may cache the CallResponse if this is set to true to avoid making unnecessary calls to the Rosetta implementation. For this reason, implementers should be very conservative about returning true here or they could cause issues for the caller.
Implementations§
Source§impl CallResponse
impl CallResponse
Sourcepub fn new(result: Value, idempotent: bool) -> CallResponse
pub fn new(result: Value, idempotent: bool) -> CallResponse
CallResponse contains the result of a /call invocation.
Trait Implementations§
Source§impl Clone for CallResponse
impl Clone for CallResponse
Source§fn clone(&self) -> CallResponse
fn clone(&self) -> CallResponse
Returns a duplicate 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 Debug for CallResponse
impl Debug for CallResponse
Source§impl Default for CallResponse
impl Default for CallResponse
Source§fn default() -> CallResponse
fn default() -> CallResponse
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for CallResponse
impl<'de> Deserialize<'de> for CallResponse
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 CallResponse
impl PartialEq for CallResponse
Source§impl Serialize for CallResponse
impl Serialize for CallResponse
impl Eq for CallResponse
impl StructuralPartialEq for CallResponse
Auto Trait Implementations§
impl Freeze for CallResponse
impl RefUnwindSafe for CallResponse
impl Send for CallResponse
impl Sync for CallResponse
impl Unpin for CallResponse
impl UnwindSafe for CallResponse
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