rs-stellar-xdr is strict about vec and string types. It won't let a value be assigned to a string or vec field without a conversion (which is cheap because it is not a copy) where the conversion checks the size.
This is why when assigning to a string field we have to do "my string".try_into()?.
I've got some cases where I want to assign and truncate to whatever the limit is so that the assignment is infallible.
I'm not sure how to introduce that to the rs-stellar-xdr API of the StringM and VecM types.