Skip to content

Commit

Permalink
Glob-reexport all generated models in Rust (#809)
Browse files Browse the repository at this point in the history
Like what's fixed in #806, sometimes types are accidentally not publicly
reexported in the `api` package. This changes the import/reexport
statement to a glob so generated models are automatically reexported.
  • Loading branch information
svix-andor authored Feb 6, 2023
2 parents 833b3c7 + 65f82d8 commit 0ee7cdf
Showing 1 changed file with 1 addition and 11 deletions.
12 changes: 1 addition & 11 deletions rust/src/api.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,7 @@ use crate::apis::{
message_api, message_attempt_api,
};
use crate::error::Result;
pub use crate::models::{
AppPortalAccessIn, AppPortalAccessOut, ApplicationIn, ApplicationOut, DashboardAccessOut,
EndpointHeadersIn, EndpointHeadersOut, EndpointHeadersPatchIn, EndpointIn, EndpointOut,
EndpointSecretOut, EndpointSecretRotateIn, EndpointStats, EndpointTransformationIn,
EndpointTransformationOut, EndpointUpdate, EventTypeIn, EventTypeOut, EventTypeUpdate,
IntegrationIn, IntegrationKeyOut, IntegrationOut, IntegrationUpdate,
ListResponseApplicationOut, ListResponseEndpointMessageOut, ListResponseEndpointOut,
ListResponseEventTypeOut, ListResponseIntegrationOut, ListResponseMessageAttemptEndpointOut,
ListResponseMessageAttemptOut, ListResponseMessageEndpointOut, ListResponseMessageOut,
MessageAttemptOut, MessageIn, MessageOut, MessageStatus, RecoverIn, ReplayIn, StatusCodeClass,
};
pub use crate::models::*;

const CRATE_VERSION: &str = env!("CARGO_PKG_VERSION");

Expand Down

0 comments on commit 0ee7cdf

Please sign in to comment.