Struct janus_plugin::jansson::JanssonValue [] [src]

pub struct JanssonValue { /* fields omitted */ }

A safe wrapper for a Jansson JSON value. Automatically increases and decreases the refcount of the underlying value when cloned/dropped.

Methods

impl JanssonValue
[src]

[src]

Creates a wrapper for the given Jansson value.

[src]

Gets the reference backing this value without taking ownership.

[src]

Transfers ownership of this value to this pointer. The consumer of the pointer is responsible for calling json_decref on it later.

[src]

Decodes a JSON string slice into a Jansson value, returning an error if decoding fails.

[src]

Decodes a JSON C-style string into a Jansson value, returning an error if decoding fails.

[src]

Encodes this Jansson value as a JSON owned string.

[src]

Encodes this Jansson value as a JSON owned C-style string.

Trait Implementations

impl Debug for JanssonValue
[src]

[src]

Formats the value using the given formatter.

impl Deref for JanssonValue
[src]

The resulting type after dereferencing.

[src]

Dereferences the value.

impl Clone for JanssonValue
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Drop for JanssonValue
[src]

[src]

Executes the destructor for this type. Read more

impl Send for JanssonValue
[src]