|
87 | 87 | //! pub rendered: Option<String>,
|
88 | 88 | //! }
|
89 | 89 | //!
|
| 90 | +//! # // We need this line because `WpContextual` implements `crate::SparseField` |
| 91 | +//! # trait SparseField { fn as_mapped_field_name(&self) -> &str; } |
90 | 92 | //! # // We need these 2 lines for UniFFI
|
91 | 93 | //! # uniffi::setup_scaffolding!();
|
92 | 94 | //! # fn main() {}
|
|
123 | 125 | //! #[WpContext(edit, view)]
|
124 | 126 | //! pub rendered: Option<String>,
|
125 | 127 | //! }
|
| 128 | +//! # // We need this line because `WpContextual` implements `crate::SparseField` |
| 129 | +//! # trait SparseField { fn as_mapped_field_name(&self) -> &str; } |
126 | 130 | //! # // We need these 2 lines for UniFFI
|
127 | 131 | //! # uniffi::setup_scaffolding!();
|
128 | 132 | //! # fn main() {}
|
|
168 | 172 | //! # #[WpContext(edit, view)]
|
169 | 173 | //! # pub rendered: Option<String>,
|
170 | 174 | //! # }
|
| 175 | +//! # // We need this line because `WpContextual` implements `crate::SparseField` |
| 176 | +//! # trait SparseField { fn as_mapped_field_name(&self) -> &str; } |
171 | 177 | //! # // We need these 2 lines for UniFFI
|
172 | 178 | //! # uniffi::setup_scaffolding!();
|
173 | 179 | //! # fn main() {}
|
|
212 | 218 | //! # #[WpContext(edit, view)]
|
213 | 219 | //! # pub rendered: Option<String>,
|
214 | 220 | //! # }
|
| 221 | +//! # // We need this line because `WpContextual` implements `crate::SparseField` |
| 222 | +//! # trait SparseField { fn as_mapped_field_name(&self) -> &str; } |
215 | 223 | //! # // We need these 2 lines for UniFFI
|
216 | 224 | //! # uniffi::setup_scaffolding!();
|
217 | 225 | //! # fn main() {}
|
|
253 | 261 | //! #[WpContextualOption]
|
254 | 262 | //! pub avatar_urls: Option<HashMap<String, String>>,
|
255 | 263 | //! }
|
| 264 | +//! # // We need this line because `WpContextual` implements `crate::SparseField` |
| 265 | +//! # trait SparseField { fn as_mapped_field_name(&self) -> &str; } |
256 | 266 | //! # // We need these 2 lines for UniFFI
|
257 | 267 | //! # uniffi::setup_scaffolding!();
|
258 | 268 | //! # fn main() {}
|
|
283 | 293 | //! #[WpContextualExcludeFromFields]
|
284 | 294 | //! pub additional_fields: Option<String>,
|
285 | 295 | //! }
|
| 296 | +//! # // We need this line because `WpContextual` implements `crate::SparseField` |
| 297 | +//! # trait SparseField { fn as_mapped_field_name(&self) -> &str; } |
286 | 298 | //! # // We need these 2 lines for UniFFI
|
287 | 299 | //! # uniffi::setup_scaffolding!();
|
288 | 300 | //! # fn main() {}
|
|
324 | 336 | //! #[WpContext(edit, view)]
|
325 | 337 | //! pub baz: Option<u32>,
|
326 | 338 | //! }
|
| 339 | +//! # // We need this line because `WpContextual` implements `crate::SparseField` |
| 340 | +//! # trait SparseField { fn as_mapped_field_name(&self) -> &str; } |
327 | 341 | //! # // We need these 2 lines for UniFFI
|
328 | 342 | //! # uniffi::setup_scaffolding!();
|
329 | 343 | //! # fn main() {}
|
@@ -415,6 +429,8 @@ mod wp_contextual;
|
415 | 429 | /// #[WpContext(edit)]
|
416 | 430 | /// pub qux: Option<Vec<u32>>,
|
417 | 431 | /// }
|
| 432 | +/// # // We need this line because `WpContextual` implements `crate::SparseField` |
| 433 | +/// # trait SparseField { fn as_mapped_field_name(&self) -> &str; } |
418 | 434 | /// # // We need these 2 lines for UniFFI
|
419 | 435 | /// # uniffi::setup_scaffolding!();
|
420 | 436 | /// # fn main() {}
|
|
0 commit comments