pub struct Api { /* private fields */ }Expand description
- Summon Platform APIs
- Collection endpoints from Summon Platform APIs and helper methods
- Every API service contains:
-
- domain: API host,
-
- description: Description for external frontends,
-
- and it’s related methods.
Implementations§
Source§impl Api
impl Api
Sourcepub fn signature_voting(&self) -> SignatureVotingApi
pub fn signature_voting(&self) -> SignatureVotingApi
- SignatureVotingApi
- Can be used to create or manage voting and simple access to data of our signature based voting (off-chain) solution.
- @returns {SignatureVotingApi}
Sourcepub fn agora(&self) -> AgoraApi
pub fn agora(&self) -> AgoraApi
- AgoraApi
- Can be used to create or manage voting with Agora based system, or for simple access to data.
- @returns {AgoraApi}
pub fn new() -> Self
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Api
impl<'de> Deserialize<'de> for Api
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 FromWasmAbi for Api
impl FromWasmAbi for Api
Source§impl IntoWasmAbi for Api
impl IntoWasmAbi for Api
Source§impl OptionFromWasmAbi for Api
impl OptionFromWasmAbi for Api
Source§impl OptionIntoWasmAbi for Api
impl OptionIntoWasmAbi for Api
Source§impl RefFromWasmAbi for Api
impl RefFromWasmAbi for Api
Source§impl RefMutFromWasmAbi for Api
impl RefMutFromWasmAbi for Api
Auto Trait Implementations§
impl Freeze for Api
impl RefUnwindSafe for Api
impl Send for Api
impl Sync for Api
impl Unpin for Api
impl UnwindSafe for Api
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> 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 moreSource§impl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
impl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
Source§type Abi = <T as IntoWasmAbi>::Abi
type Abi = <T as IntoWasmAbi>::Abi
Same as
IntoWasmAbi::AbiSource§fn return_abi(self) -> <T as ReturnWasmAbi>::Abi
fn return_abi(self) -> <T as ReturnWasmAbi>::Abi
Same as
IntoWasmAbi::into_abi, except that it may throw and never
return in the case of Err.