The current API defines the git::items::list::ClientBuilder::recursion_level() function to take an Into<String> parameter:
pub fn recursion_level(self, recursion_level: impl Into<String>) -> Self
// The recursion level of this request. The default is ‘none’, no recursion.
However the operation only takes a fixed set of values:
None
OneLevel
OneLevelPlusNestedEmptyFolders
Full
Should fix up the spec to make this parameter an enum with the set of valid values.
See VersionControlRecursionType