I’ve got a lot of string-like arguments for which I want to accept String, &str, etc.
The signature currently looks like this:
pub fn new<S1, S2, S3, S4, S5, S6>(document_type: S1, uid: UID, pid: PID, title: S2, url: S3, abstract_text: S4, description: S5, content: S6) -> Self
where S1: Into<String>,
S2: Into<String>,
S3: Into<String>,
S4: Into<String>,
S5: Into<String>,
S6: Into<String> {
/* ... */
}
How can I make this better?