jshift 0.7.0

Schema-guided typed JSON on raw bytes: path get/mutate, open views, project — without a Value tree.
Documentation
error[E0277]: `NotAView` cannot be used as a nested jshift JSON field
  --> tests/ui/nested_missing_jsonview.rs:12:12
   |
12 |     child: NotAView,
   |            ^^^^^^^^ `JsonView` is not implemented for `NotAView`
   |
help: the trait `JsonView` is not implemented for `NotAView`
  --> tests/ui/nested_missing_jsonview.rs:5:1
   |
 5 | struct NotAView {
   | ^^^^^^^^^^^^^^^
   = note: serde users: nested structs need `#[derive(JsonView)]` on the nested type (like `Deserialize`). Wire shape is `{"field": {...} }`. For flatten into the parent object use `#[json(flatten)]`. For a custom scalar newtype implementing `FromJsonSlice`, mark the field `#[json(from_slice)]`. Built-in scalars (`String`, integers, `bool`, …) and `HashMap`/`BTreeMap<String, V>` are not nested views.
help: the trait `JsonView` is implemented for `Parent`
  --> tests/ui/nested_missing_jsonview.rs:9:10
   |
 9 | #[derive(JsonView)]
   |          ^^^^^^^^
note: required by a bound in `read_view_at`
  --> src/view.rs
   |
   | pub fn read_view_at<T: JsonView>(
   |                        ^^^^^^^^ required by this bound in `read_view_at`
   = note: this error originates in the derive macro `JsonView` (in Nightly builds, run with -Z macro-backtrace for more info)

error[E0277]: `NotAView` cannot be used as a nested jshift JSON field
 --> tests/ui/nested_missing_jsonview.rs:9:10
  |
9 | #[derive(JsonView)]
  |          ^^^^^^^^ `JsonView` is not implemented for `NotAView`
  |
help: the trait `JsonView` is not implemented for `NotAView`
 --> tests/ui/nested_missing_jsonview.rs:5:1
  |
5 | struct NotAView {
  | ^^^^^^^^^^^^^^^
  = note: serde users: nested structs need `#[derive(JsonView)]` on the nested type (like `Deserialize`). Wire shape is `{"field": {...} }`. For flatten into the parent object use `#[json(flatten)]`. For a custom scalar newtype implementing `FromJsonSlice`, mark the field `#[json(from_slice)]`. Built-in scalars (`String`, integers, `bool`, …) and `HashMap`/`BTreeMap<String, V>` are not nested views.
help: the trait `JsonView` is implemented for `Parent`
 --> tests/ui/nested_missing_jsonview.rs:9:10
  |
9 | #[derive(JsonView)]
  |          ^^^^^^^^
note: required by a bound in `write_view_at`
 --> src/view.rs
  |
  | pub fn write_view_at<T: JsonView>(
  |                         ^^^^^^^^ required by this bound in `write_view_at`
  = note: this error originates in the derive macro `JsonView` (in Nightly builds, run with -Z macro-backtrace for more info)

error[E0599]: no method named `to_schema_bytes` found for struct `NotAView` in the current scope
 --> tests/ui/nested_missing_jsonview.rs:9:10
  |
5 | struct NotAView {
  | --------------- method `to_schema_bytes` not found for this struct
...
9 | #[derive(JsonView)]
  |          ^^^^^^^^ method not found in `NotAView`
  |
  = help: items from traits can only be used if the trait is implemented and in scope
  = note: the following trait defines an item `to_schema_bytes`, perhaps you need to implement it:
          candidate #1: `JsonView`
  = note: this error originates in the derive macro `JsonView` (in Nightly builds, run with -Z macro-backtrace for more info)