Skip to main content

to_safe_id

Function to_safe_id 

Source
pub fn to_safe_id(id: &str) -> String
Expand description

Encodes a resource id so it is safe to embed in a URL path. Apify uses the username~resourcename form, so the first / of an id is replaced with ~.