It sounds like you need to convert self.name into an array (of length 1). You can do that with from_ref. To do that on a value in an Option, you can map it:
165 | self.name.as_ref().map(|name| array::from_ref(name)),
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
| |
| expected `Option<&[String]>`, found `Option<&[String; 1]>`
| expected due to the type of this binding
It looks like the compiler wasn't able to automatically insert the conversion from array (&[String; 1]) to slice (&[String]), so you should do it manually: