Skip to main content

file_generated_surface_match

Function file_generated_surface_match 

Source
pub fn file_generated_surface_match(
    file_path: &Path,
    method: &str,
    request_path: &str,
) -> Option<String>
Expand description

Matches one request against generated API/admin operation declarations in a contract file.

§Parameters

§Returns

Returns Some when crate::runtime::json_commands::file_generated_surface_match can produce a value and None otherwise.

§Performance

Performance is proportional to the size of the supplied inputs and any parsed or loaded data consumed by crate::runtime::json_commands::file_generated_surface_match.

§Examples

ⓘ
let _result = pharos_native::runtime::json_commands::file_generated_surface_match(todo!(), todo!(), "/");