@@ -73,31 +73,25 @@ pub enum SubscriptionStatus {
73
73
pub struct SubscribersListParams {
74
74
// The current page.
75
75
#[ uniffi( default = None ) ]
76
- page : Option < u64 > ,
77
-
76
+ pub page : Option < u64 > ,
78
77
// The amount of items to show per page.
79
78
#[ uniffi( default = None ) ]
80
- per_page : Option < u64 > ,
81
-
79
+ pub per_page : Option < u64 > ,
82
80
// Search for subscribers
83
81
#[ uniffi( default = None ) ]
84
- search : Option < String > ,
85
-
82
+ pub search : Option < String > ,
86
83
// Sort subscribers by a specific field
87
84
#[ uniffi( default = None ) ]
88
- sort : Option < ListSubscribersSortField > ,
89
-
85
+ pub sort : Option < ListSubscribersSortField > ,
90
86
// Sort order
91
87
#[ uniffi( default = None ) ]
92
- sort_order : Option < WpApiParamOrder > ,
93
-
88
+ pub sort_order : Option < WpApiParamOrder > ,
94
89
// Filter subscribers by a specific subscriber type
95
90
#[ uniffi( default = None ) ]
96
- filter : Option < SubscriberType > ,
97
-
91
+ pub filter : Option < SubscriberType > ,
98
92
// Array of filters to apply (combined with AND logic). If provided, overrides the single filter parameter.
99
93
#[ uniffi( default = None ) ]
100
- filters : Option < Vec < SubscriberType > > ,
94
+ pub filters : Option < Vec < SubscriberType > > ,
101
95
}
102
96
103
97
impl AppendUrlQueryPairs for SubscribersListParams {
@@ -186,12 +180,10 @@ impl AppendUrlQueryPairs for GetSubscriberQuery {
186
180
pub struct AddSubscribersParams {
187
181
// A list of emails to add as subscribers to the current site.
188
182
pub emails : Vec < String > ,
189
-
190
183
// A list of category IDs the emails should be subscribed to.
191
184
#[ uniffi( default = None ) ]
192
185
#[ serde( skip_serializing_if = "Option::is_none" ) ]
193
186
pub categories : Option < Vec < String > > ,
194
-
195
187
// If true, the import will only parse the file and return the number of subscribers that would be imported.
196
188
#[ uniffi( default = false ) ]
197
189
#[ serde( skip_serializing_if = "<&bool>::not" ) ]
@@ -267,7 +259,7 @@ pub struct SubscriberImportJob {
267
259
#[ derive( Debug , Serialize , Deserialize , uniffi:: Record ) ]
268
260
pub struct SubscriberImportJobsListParams {
269
261
#[ uniffi( default = None ) ]
270
- status : Option < SubscriberImportJobStatus > ,
262
+ pub status : Option < SubscriberImportJobStatus > ,
271
263
}
272
264
273
265
impl AppendUrlQueryPairs for SubscriberImportJobsListParams {
0 commit comments