Module pact_ffi::models::message[][src]

Expand description

The Pact Message type, including associated matching rules and provider states.

Structs

Struct that defines a message.

An iterator that enables FFI iteration over metadata by putting all the keys on the heap and tracking which one we’re currently at.

A single key-value pair exported to the C-side.

Struct that encapsulates all the info about a provider state

Iterator over individual provider states.

Functions

Destroy the Message being pointed to.

Get a copy of the metadata value indexed by key.

Get the contents of a Message.

Get a copy of the description.

Get an iterator over the metadata of a message.

Get a copy of the provider state at the given index from this message.

Get an iterator over provider states.

Insert the (key, value) pair into this Message’s metadata HashMap.

Free the metadata iterator when you’re done using it.

Get the next key and value out of the iterator, if possible

Free a pair of key and value returned from message_metadata_iter_next.

Get a mutable pointer to a newly-created default message on the heap.

Constructs a Message from a body with a given content-type.

Constructs a Message from the JSON string

Write the description field on the Message.

Get the next value from the iterator.