Function apollo_client::utils::canonicalize_namespace [−][src]
pub fn canonicalize_namespace(namespace: &str) -> String
Expand description
Canonicalize the namespace. Just add .properties
to the end of the namespace which not end
with .properties
or .xml
or .json
or .yaml
or .yml
or .txt
.
Examples
use apollo_client::utils::canonicalize_namespace; assert_eq!(canonicalize_namespace("foo"), "foo.properties"); assert_eq!(canonicalize_namespace("foo.yaml"), "foo.yaml");