pub struct DisplayResolver;Expand description
Implementations§
Source§impl DisplayResolver
impl DisplayResolver
Sourcepub fn resolve(
&self,
modules: Vec<ScannedModule>,
binding_path: Option<&Path>,
binding_data: Option<&Value>,
) -> Result<Vec<ScannedModule>, DisplayResolverError>
pub fn resolve( &self, modules: Vec<ScannedModule>, binding_path: Option<&Path>, binding_data: Option<&Value>, ) -> Result<Vec<ScannedModule>, DisplayResolverError>
Apply display overlay to a list of ScannedModules.
§Arguments
modules- ScannedModule instances from a framework scanner.binding_path- Path to a single.binding.yamlfile or a directory of binding files. Optional.binding_data- Pre-parsed binding YAML content as a JSON Value ({"bindings": [...]}) or amodule_id -> entrymap. Takes precedence overbinding_path.
§Errors
Returns Err if an MCP alias exceeds the 64-character limit or does not
match the required pattern.
Trait Implementations§
Source§impl Debug for DisplayResolver
impl Debug for DisplayResolver
Source§impl Default for DisplayResolver
impl Default for DisplayResolver
Source§fn default() -> DisplayResolver
fn default() -> DisplayResolver
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for DisplayResolver
impl RefUnwindSafe for DisplayResolver
impl Send for DisplayResolver
impl Sync for DisplayResolver
impl Unpin for DisplayResolver
impl UnsafeUnpin for DisplayResolver
impl UnwindSafe for DisplayResolver
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more