@@ -12,7 +12,7 @@ use time::OffsetDateTime;
1212 serde( rename_all = "camelCase" )
1313) ]
1414#[ derive( Debug , Clone , PartialEq , Eq , PartialOrd , Ord , Hash ) ]
15- #[ non_exhaustive]
15+ #[ cfg_attr ( not ( feature = "unstable" ) , non_exhaustive) ]
1616pub struct RegenerateResponse {
1717 pub account_id : u64 ,
1818 pub license_id : u32 ,
@@ -28,7 +28,7 @@ pub struct RegenerateResponse {
2828 serde( rename_all = "camelCase" )
2929) ]
3030#[ derive( Debug , Clone , PartialEq , Eq , PartialOrd , Ord , Hash ) ]
31- #[ non_exhaustive]
31+ #[ cfg_attr ( not ( feature = "unstable" ) , non_exhaustive) ]
3232pub struct VerifyResponse {
3333 pub valid : bool ,
3434 pub license_id : Option < u32 > ,
@@ -50,7 +50,7 @@ pub struct VerifyResponse {
5050 serde( rename_all = "camelCase" )
5151) ]
5252#[ derive( Debug , Clone , PartialEq , Eq , PartialOrd , Ord , Hash ) ]
53- #[ non_exhaustive]
53+ #[ cfg_attr ( not ( feature = "unstable" ) , non_exhaustive) ]
5454pub struct View ( pub Vec < ViewOne > ) ;
5555
5656/// Representation of a single license associated with an account.
@@ -62,7 +62,7 @@ pub struct View(pub Vec<ViewOne>);
6262 serde( rename_all = "camelCase" )
6363) ]
6464#[ derive( Debug , Clone , PartialEq , Eq , PartialOrd , Ord , Hash ) ]
65- #[ non_exhaustive]
65+ #[ cfg_attr ( not ( feature = "unstable" ) , non_exhaustive) ]
6666pub struct ViewOne {
6767 pub id : u32 ,
6868 pub account_id : u64 ,
@@ -92,7 +92,7 @@ pub struct ViewOne {
9292) ]
9393#[ derive( Debug , Copy , Clone , PartialEq , Eq , PartialOrd , Ord , Hash , AsRefStr , EnumString ) ]
9494#[ strum( serialize_all = "SCREAMING_SNAKE_CASE" ) ]
95- #[ non_exhaustive]
95+ #[ cfg_attr ( not ( feature = "unstable" ) , non_exhaustive) ]
9696pub enum Status {
9797 /// License is active and can be used.
9898 Active ,
0 commit comments