Skip to content

Commit

Permalink
Merge pull request #472 from tienvx/update-docs-pactffi_message_given…
Browse files Browse the repository at this point in the history
…_with_param

docs: Update comment for pactffi_message_given_with_param
  • Loading branch information
rholshausen authored Oct 31, 2024
2 parents a85d9e0 + 82e570a commit 0b0bb58
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions rust/pact_ffi/src/mock_server/handles.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2795,11 +2795,14 @@ pub extern fn pactffi_message_given(message: MessageHandle, description: *const
}
}

/// Adds a provider state to the Message with a parameter key and value.
/// Adds a parameter key and value to a provider state to the Message. If the provider state
/// does not exist, a new one will be created, otherwise the parameter will be merged into the
/// existing one. The parameter value will be parsed as JSON.
///
/// # Parameters
/// * `description` - The provider state description. It needs to be unique.
/// * `name` - Parameter name.
/// * `value` - Parameter value.
/// * `value` - Parameter value as JSON.
#[no_mangle]
pub extern fn pactffi_message_given_with_param(message: MessageHandle, description: *const c_char,
name: *const c_char, value: *const c_char) {
Expand Down

0 comments on commit 0b0bb58

Please sign in to comment.