pub fn check_property_classification<T: SetObject>(
obj: &T,
) -> Result<(), String>Expand description
Check the property classification of T against obj, a value with
every field populated.
Every top-level property obj serializes MUST be in exactly one of
SetObject::SERVER_SET and SetObject::CLIENT_SETTABLE, and every
SetObject::IMMUTABLE name MUST be in CLIENT_SETTABLE.
Types crates call this from a test that builds obj with a struct
literal and no ..Default::default(). A field added to the struct then
fails to compile until the test sets it, and fails this check until it is
classified.
ยงErrors
Returns every problem found, one per line, or a single line if obj
does not serialize to a JSON object.