pub struct SignStatesResponse {
pub recycled_orders: Vec<RecycledOrder>,
pub server_signed_states: Vec<ServerSignedData>,
pub states: Vec<ContractBalanceState>,
}Expand description
A call to signStates will return a list of recycled orders, a list of states
that have already been signed by the server, and a list of new states for a
client to sign. When the list of states and recycled_orders is empty, this
means the client has nothing else to sign. This is also used as an optional input
argument when creating a SignStatesRequest, as the function is used both to get
a list of states to sign as well as to submit client signed states.
Fields§
§recycled_orders: Vec<RecycledOrder>§server_signed_states: Vec<ServerSignedData>§states: Vec<ContractBalanceState>Implementations§
Source§impl SignStatesResponse
impl SignStatesResponse
Sourcepub fn has_states_to_sign(&self) -> bool
pub fn has_states_to_sign(&self) -> bool
Return true if response data has states for the client to sign
Trait Implementations§
Source§impl Clone for SignStatesResponse
impl Clone for SignStatesResponse
Source§fn clone(&self) -> SignStatesResponse
fn clone(&self) -> SignStatesResponse
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 SignStatesResponse
impl Debug for SignStatesResponse
Source§impl From<ResponseData> for SignStatesResponse
Convert from the ugly auto-generated GraphQL type into a more ergonomic
response that we can manipulate
impl From<ResponseData> for SignStatesResponse
Convert from the ugly auto-generated GraphQL type into a more ergonomic response that we can manipulate
Source§fn from(res: ResponseData) -> Self
fn from(res: ResponseData) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for SignStatesResponse
impl RefUnwindSafe for SignStatesResponse
impl Send for SignStatesResponse
impl Sync for SignStatesResponse
impl Unpin for SignStatesResponse
impl UnsafeUnpin for SignStatesResponse
impl UnwindSafe for SignStatesResponse
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<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