@@ -53,26 +53,26 @@ impl Default for WebhookOptions {
53
53
}
54
54
55
55
impl WebhookOptions {
56
- /// Returns the default [`OptionsBuilder `] which allows to selectively
56
+ /// Returns the default [`WebhookOptionsBuilder `] which allows to selectively
57
57
/// customize the options. See the documentation for [`WebhookOptions`] for more
58
58
/// information on available functions.
59
- pub fn builder ( ) -> OptionsBuilder {
60
- OptionsBuilder :: default ( )
59
+ pub fn builder ( ) -> WebhookOptionsBuilder {
60
+ WebhookOptionsBuilder :: default ( )
61
61
}
62
62
}
63
63
64
- /// The [`OptionsBuilder `] which allows to selectively customize the webhook
64
+ /// The [`WebhookOptionsBuilder `] which allows to selectively customize the webhook
65
65
/// server [`WebhookOptions`].
66
66
///
67
67
/// Usually, this struct is not constructed manually, but instead by calling
68
- /// [`WebhookOptions::builder()`] or [`OptionsBuilder ::default()`].
68
+ /// [`WebhookOptions::builder()`] or [`WebhookOptionsBuilder ::default()`].
69
69
#[ derive( Debug , Default ) ]
70
- pub struct OptionsBuilder {
70
+ pub struct WebhookOptionsBuilder {
71
71
socket_addr : Option < SocketAddr > ,
72
72
subject_alterative_dns_names : Vec < String > ,
73
73
}
74
74
75
- impl OptionsBuilder {
75
+ impl WebhookOptionsBuilder {
76
76
/// Sets the socket address the webhook server uses to bind for HTTPS.
77
77
pub fn bind_address ( mut self , bind_ip : impl Into < IpAddr > , bind_port : u16 ) -> Self {
78
78
self . socket_addr = Some ( SocketAddr :: new ( bind_ip. into ( ) , bind_port) ) ;
0 commit comments