pub fn parse_attributes(raw: Option<&str>) -> Result<Option<Vec<String>>>Expand description
Parses the lightweight comma-separated attribute override syntax.
None means the caller did not request projection, while empty or
whitespace-only lists are rejected so the service layer never has to guess.
ยงExamples
use osp_cli::ports::parse_attributes;
assert_eq!(
parse_attributes(Some("uid, cn ,mail")).unwrap(),
Some(vec!["uid".to_string(), "cn".to_string(), "mail".to_string()])
);
assert_eq!(parse_attributes(None).unwrap(), None);