Skip to content

Commit c925bd0

Browse files
committed
OptionsBuilder -> WebhookOptionsBuilder
1 parent 37818fd commit c925bd0

File tree

2 files changed

+9
-8
lines changed

2 files changed

+9
-8
lines changed

crates/stackable-webhook/CHANGELOG.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@ All notable changes to this project will be documented in this file.
1212
To achieve this, a new `CertificateResolver` was added.
1313
Also, `TlsServer::new` now returns an additional `mpsc::Receiver<Certificate>`, so that the caller
1414
can get notified about certificate rotations happening ([#1066]).
15-
- `stackable_webhook::Options` has been renamed to `stackable_webhook::WebhookOptions` ([#1066]).
15+
- `stackable_webhook::Options` has been renamed to `stackable_webhook::WebhookOptions`, as well as
16+
`OptionsBuilder` to `WebhookOptionsBuilder` ([#1066]).
1617

1718
### Removed
1819

crates/stackable-webhook/src/options.rs

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -53,26 +53,26 @@ impl Default for WebhookOptions {
5353
}
5454

5555
impl WebhookOptions {
56-
/// Returns the default [`OptionsBuilder`] which allows to selectively
56+
/// Returns the default [`WebhookOptionsBuilder`] which allows to selectively
5757
/// customize the options. See the documentation for [`WebhookOptions`] for more
5858
/// information on available functions.
59-
pub fn builder() -> OptionsBuilder {
60-
OptionsBuilder::default()
59+
pub fn builder() -> WebhookOptionsBuilder {
60+
WebhookOptionsBuilder::default()
6161
}
6262
}
6363

64-
/// The [`OptionsBuilder`] which allows to selectively customize the webhook
64+
/// The [`WebhookOptionsBuilder`] which allows to selectively customize the webhook
6565
/// server [`WebhookOptions`].
6666
///
6767
/// Usually, this struct is not constructed manually, but instead by calling
68-
/// [`WebhookOptions::builder()`] or [`OptionsBuilder::default()`].
68+
/// [`WebhookOptions::builder()`] or [`WebhookOptionsBuilder::default()`].
6969
#[derive(Debug, Default)]
70-
pub struct OptionsBuilder {
70+
pub struct WebhookOptionsBuilder {
7171
socket_addr: Option<SocketAddr>,
7272
subject_alterative_dns_names: Vec<String>,
7373
}
7474

75-
impl OptionsBuilder {
75+
impl WebhookOptionsBuilder {
7676
/// Sets the socket address the webhook server uses to bind for HTTPS.
7777
pub fn bind_address(mut self, bind_ip: impl Into<IpAddr>, bind_port: u16) -> Self {
7878
self.socket_addr = Some(SocketAddr::new(bind_ip.into(), bind_port));

0 commit comments

Comments
 (0)