aptos-client-icp 0.0.1

The Aptos Node API is a RESTful API for client applications to interact with the Aptos blockchain.
Documentation
/*
 * Aptos Node API
 *
 * The Aptos Node API is a RESTful API for client applications to interact with the Aptos blockchain.
 *
 * The version of the OpenAPI document: 1.2.0
 * 
 * Generated by: https://openapi-generator.tech
 */

use crate::models;
use serde::{Deserialize, Serialize};

#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
#[serde(tag = "type")]
pub enum Signature {
    #[serde(rename="ed25519")]
    Ed25519(Box<models::SignatureEd25519>),
    #[serde(rename="secp256k1_ecdsa")]
    Secp256k1Ecdsa(Box<models::SignatureSecp256k1Ecdsa>),
    #[serde(rename="web_authn")]
    WebAuthn(Box<models::SignatureWebAuthn>),
    #[serde(rename="keyless")]
    Keyless(Box<models::SignatureKeyless>),
}

impl Default for Signature {
    fn default() -> Self {
        Self::Ed25519(Default::default())
    }
}