pub enum ApiRequest {
CreateTransaction {
actor: Did,
scope: String,
},
TransitionState {
tx_id: Uuid,
target_state: String,
actor: Did,
},
QueryTransaction {
tx_id: Uuid,
},
ResolveIdentity {
did: Did,
},
RegisterIdentity {
did: Did,
public_key_hash: Hash256,
},
Deliberate {
proposal_hash: Hash256,
actor: Did,
},
Vote {
proposal_id: Uuid,
approve: bool,
actor: Did,
},
Challenge {
target_id: Uuid,
grounds: String,
actor: Did,
},
}Expand description
Incoming API request variants for the EXOCHAIN trust fabric.
Variants§
CreateTransaction
TransitionState
QueryTransaction
ResolveIdentity
RegisterIdentity
Deliberate
Vote
Challenge
Trait Implementations§
Source§impl Clone for ApiRequest
impl Clone for ApiRequest
Source§fn clone(&self) -> ApiRequest
fn clone(&self) -> ApiRequest
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 ApiRequest
impl Debug for ApiRequest
Source§impl<'de> Deserialize<'de> for ApiRequest
impl<'de> Deserialize<'de> for ApiRequest
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
Auto Trait Implementations§
impl Freeze for ApiRequest
impl RefUnwindSafe for ApiRequest
impl Send for ApiRequest
impl Sync for ApiRequest
impl Unpin for ApiRequest
impl UnsafeUnpin for ApiRequest
impl UnwindSafe for ApiRequest
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