serde_ignored_fields/features/
schemars.rs

1/// Forwards directly to the [`schemars::JsonSchema`] implementation of `T`.
2impl<T, IgnoredFields> schemars::JsonSchema for crate::PreserveIgnoredFields<T, IgnoredFields>
3where
4	T: schemars::JsonSchema,
5{
6	fn schema_name() -> String {
7		T::schema_name()
8	}
9
10	fn is_referenceable() -> bool {
11		T::is_referenceable()
12	}
13
14	fn schema_id() -> std::borrow::Cow<'static, str> {
15		T::schema_id()
16	}
17
18	fn json_schema(gen: &mut schemars::gen::SchemaGenerator) -> schemars::schema::Schema {
19		T::json_schema(gen)
20	}
21
22	fn _schemars_private_non_optional_json_schema(
23		gen: &mut schemars::gen::SchemaGenerator,
24	) -> schemars::schema::Schema {
25		T::_schemars_private_non_optional_json_schema(gen)
26	}
27
28	fn _schemars_private_is_option() -> bool {
29		T::_schemars_private_is_option()
30	}
31}