Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.praison.ai/llms.txt

Use this file to discover all available pages before exploring further.

parse_plugin_header

Function
This function is defined in the plugins module.
Parse plugin header from string content Extracts metadata from a plugin file’s header comments.

Signature

def parse_plugin_header(content: &str) -> Result<PluginMetadata, PluginParseError>

Parameters

content
&str
required
No description available.

Returns

Returns
Result<PluginMetadata, PluginParseError>
The result of the operation.

Uses

  • lines
  • trim
  • starts_with
  • trim_start_matches
  • split_once
  • to_lowercase
  • split

Source

View on GitHub

praisonai/src/parity/plugins.rs at line 199

Rust Plugins