pub fn write_json<W>(&self, writer: W) -> serde_json::Result<()>
    where
        W: std::io::Write,
    {
        serde_json::to_writer(writer, self)
    }
/// Encodes the state object's information as JSON.
Encodes the state object's information as JSON.
Encodes the state object ' s information as JSON .
pub fn write_json<W>(&self, writer: W) -> serde_json::Result<()>
    where
        W: std::io::Write,
    {
        serde_json::to_writer(writer, self)
    }
pub fn write_json < W > ( & self , writer : W ) -> serde_json :: Result < ( ) > where W : std :: io :: Write , { serde_json :: to_writer ( writer , self ) }
Encodes the state object's information as JSON.
Encodes the state object ' s information as JSON .
&self
writer
W
&self
writer
W