11// this file is @generated
2- use crate :: { error:: Result , models:: * , Configuration } ;
2+ use crate :: {
3+ error:: Result ,
4+ models:: * ,
5+ Configuration ,
6+ } ;
37
48#[ derive( Default ) ]
59pub struct EndpointListOptions {
@@ -57,7 +61,9 @@ pub struct Endpoint<'a> {
5761
5862impl < ' a > Endpoint < ' a > {
5963 pub ( super ) fn new ( cfg : & ' a Configuration ) -> Self {
60- Self { cfg }
64+ Self {
65+ cfg,
66+ }
6167 }
6268
6369 /// List the application's endpoints.
@@ -91,7 +97,9 @@ impl<'a> Endpoint<'a> {
9197 endpoint_in : EndpointIn ,
9298 options : Option < EndpointCreateOptions > ,
9399 ) -> Result < EndpointOut > {
94- let EndpointCreateOptions { idempotency_key } = options. unwrap_or_default ( ) ;
100+ let EndpointCreateOptions {
101+ idempotency_key,
102+ } = options. unwrap_or_default ( ) ;
95103
96104 crate :: request:: Request :: new ( http1:: Method :: POST , "/api/v1/app/{app_id}/endpoint" )
97105 . with_path_param ( "app_id" , app_id)
@@ -102,7 +110,11 @@ impl<'a> Endpoint<'a> {
102110 }
103111
104112 /// Get an endpoint.
105- pub async fn get ( & self , app_id : String , endpoint_id : String ) -> Result < EndpointOut > {
113+ pub async fn get (
114+ & self ,
115+ app_id : String ,
116+ endpoint_id : String ,
117+ ) -> Result < EndpointOut > {
106118 crate :: request:: Request :: new (
107119 http1:: Method :: GET ,
108120 "/api/v1/app/{app_id}/endpoint/{endpoint_id}" ,
@@ -132,7 +144,11 @@ impl<'a> Endpoint<'a> {
132144 }
133145
134146 /// Delete an endpoint.
135- pub async fn delete ( & self , app_id : String , endpoint_id : String ) -> Result < ( ) > {
147+ pub async fn delete (
148+ & self ,
149+ app_id : String ,
150+ endpoint_id : String ,
151+ ) -> Result < ( ) > {
136152 crate :: request:: Request :: new (
137153 http1:: Method :: DELETE ,
138154 "/api/v1/app/{app_id}/endpoint/{endpoint_id}" ,
@@ -239,7 +255,9 @@ impl<'a> Endpoint<'a> {
239255 recover_in : RecoverIn ,
240256 options : Option < EndpointRecoverOptions > ,
241257 ) -> Result < RecoverOut > {
242- let EndpointRecoverOptions { idempotency_key } = options. unwrap_or_default ( ) ;
258+ let EndpointRecoverOptions {
259+ idempotency_key,
260+ } = options. unwrap_or_default ( ) ;
243261
244262 crate :: request:: Request :: new (
245263 http1:: Method :: POST ,
@@ -276,7 +294,9 @@ impl<'a> Endpoint<'a> {
276294 replay_in : ReplayIn ,
277295 options : Option < EndpointReplayMissingOptions > ,
278296 ) -> Result < ReplayOut > {
279- let EndpointReplayMissingOptions { idempotency_key } = options. unwrap_or_default ( ) ;
297+ let EndpointReplayMissingOptions {
298+ idempotency_key,
299+ } = options. unwrap_or_default ( ) ;
280300
281301 crate :: request:: Request :: new (
282302 http1:: Method :: POST ,
@@ -319,7 +339,9 @@ impl<'a> Endpoint<'a> {
319339 endpoint_secret_rotate_in : EndpointSecretRotateIn ,
320340 options : Option < EndpointRotateSecretOptions > ,
321341 ) -> Result < ( ) > {
322- let EndpointRotateSecretOptions { idempotency_key } = options. unwrap_or_default ( ) ;
342+ let EndpointRotateSecretOptions {
343+ idempotency_key,
344+ } = options. unwrap_or_default ( ) ;
323345
324346 crate :: request:: Request :: new (
325347 http1:: Method :: POST ,
@@ -342,7 +364,9 @@ impl<'a> Endpoint<'a> {
342364 event_example_in : EventExampleIn ,
343365 options : Option < EndpointSendExampleOptions > ,
344366 ) -> Result < MessageOut > {
345- let EndpointSendExampleOptions { idempotency_key } = options. unwrap_or_default ( ) ;
367+ let EndpointSendExampleOptions {
368+ idempotency_key,
369+ } = options. unwrap_or_default ( ) ;
346370
347371 crate :: request:: Request :: new (
348372 http1:: Method :: POST ,
@@ -363,7 +387,10 @@ impl<'a> Endpoint<'a> {
363387 endpoint_id : String ,
364388 options : Option < EndpointGetStatsOptions > ,
365389 ) -> Result < EndpointStats > {
366- let EndpointGetStatsOptions { since, until } = options. unwrap_or_default ( ) ;
390+ let EndpointGetStatsOptions {
391+ since,
392+ until,
393+ } = options. unwrap_or_default ( ) ;
367394
368395 crate :: request:: Request :: new (
369396 http1:: Method :: GET ,
0 commit comments