Something like

```rust
pub fn name<'a>(&'a self) -> &'a str {
    self.name.as_slice()
}
```

should probably work. (In theory/hopefully, the `.as_slice()` isn't necessary, but it might be.)