From b56ac7c8eff2de026c34543dae77554e6a4e1da9 Mon Sep 17 00:00:00 2001 From: Berend Sliedrecht Date: Thu, 9 Dec 2021 15:42:45 +0100 Subject: [PATCH] refactor: removed unused typings Signed-off-by: Berend Sliedrecht --- src/typing.rs | 26 ++------------------------ 1 file changed, 2 insertions(+), 24 deletions(-) diff --git a/src/typing.rs b/src/typing.rs index b0ac1600..bc6ca997 100644 --- a/src/typing.rs +++ b/src/typing.rs @@ -12,32 +12,13 @@ pub struct InviteConfiguration<'a> { } #[derive(Serialize, Deserialize)] -pub struct Config { - pub agent_endpoint: String, - pub framework: String, - pub connection_id: Option, - pub invitation_options: Option, - pub actions: Option, -} - -#[derive(Serialize, Deserialize)] -pub struct InvitiationOptions { +pub struct InvitationOptions { pub alias: Option, pub auto_accept: Option, pub multi_use: Option, } -#[derive(Serialize, Deserialize)] -pub struct ConfigActions { - pub offer_credential: Option, -} - -#[derive(Serialize, Deserialize)] -pub struct ConfigOfferCredential { - pub credential_definition_id: String, -} - -#[derive(Default, Debug, Clone, Serialize, Deserialize)] +#[derive(Debug, Serialize, Deserialize, Clone)] pub struct Connections { pub results: Vec, } @@ -61,12 +42,9 @@ pub struct Connection { } #[derive(Default, Debug, Clone, PartialEq, Serialize, Deserialize)] -#[serde(rename_all = "camelCase")] pub struct Invitation { - #[serde(rename = "connection_id")] pub connection_id: String, pub invitation: MetaInvitation, - #[serde(rename = "invitation_url")] pub invitation_url: String, pub alias: Option, }