Skip to content

Commit

Permalink
fix(sdk): fix method visibility
Browse files Browse the repository at this point in the history
  • Loading branch information
manhunto committed Mar 5, 2024
1 parent d8dee6a commit fd2db07
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions sdk/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,11 @@ pub struct WebhooksSDK {
}

impl WebhooksSDK {
#[allow(dead_code)]
fn new(api_url: String) -> Self {
pub fn new(api_url: String) -> Self {
Self { api_url }
}

fn application(&self) -> Application {
pub fn application(&self) -> Application {
Application {
client: Client::new(self.api_url.to_string()),
}
Expand Down Expand Up @@ -47,12 +46,12 @@ impl Client {
}
}

struct Application {
pub struct Application {
client: Client,
}

#[derive(Deserialize, Debug, PartialEq)]
struct App {
pub struct App {
id: Uuid,
name: String,
}
Expand Down

0 comments on commit fd2db07

Please sign in to comment.