Skip to content

Commit

Permalink
refactor: removed unused typings
Browse files Browse the repository at this point in the history
Signed-off-by: Berend Sliedrecht <[email protected]>
  • Loading branch information
berendsliedrecht committed Dec 10, 2021
1 parent 7b9f8e0 commit b56ac7c
Showing 1 changed file with 2 additions and 24 deletions.
26 changes: 2 additions & 24 deletions src/typing.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<String>,
pub invitation_options: Option<InvitiationOptions>,
pub actions: Option<ConfigActions>,
}

#[derive(Serialize, Deserialize)]
pub struct InvitiationOptions {
pub struct InvitationOptions {
pub alias: Option<String>,
pub auto_accept: Option<String>,
pub multi_use: Option<String>,
}

#[derive(Serialize, Deserialize)]
pub struct ConfigActions {
pub offer_credential: Option<ConfigOfferCredential>,
}

#[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<Connection>,
}
Expand All @@ -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<String>,
}
Expand Down

0 comments on commit b56ac7c

Please sign in to comment.