# rewrite_design_metadata

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-designer-animation/function-rewrite_design_metadata/

**function** · [`ferroui-designer-animation`](/docs/0.5.0/api/ferroui-designer-animation/) · v0.5.0

```rust
fn rewrite_design_metadata(source: &str, renames: &std::collections::BTreeMap<String, String>) -> crate::Result<String>
```

Update designer metadata after a scope-aware source rename/copy. Real named references
must be changed by the language service first; this updates only encoded state targets.
Source must be a standalone XML subtree including its inherited namespace declarations.

[View source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Designer.Animation/states.rs#L713)

## Availability

Extracted for `aarch64-apple-darwin`. Cargo features are listed in the [crate index](/docs/0.5.0/api/).
