Skip to main content

path_value

Function path_value 

Source
pub fn path_value(
    field: &str,
    value: &str,
    pattern: &str,
) -> Result<String, Error>
Expand description

value, a relative resource name, as the path segments of a request, checking it has the form pattern, such as projects/*/zones/*/volumes/*, gives it. field names it in the error. Service::path_value also takes a full resource name of its service.