fn name_to_uuid(name: &str) -> &str {
    if let Some(stripped) = name.strip_prefix("nexus-") {
        stripped
    } else {
        name
    }
}
/// Convert nexus name to uuid.
///
/// This function never fails which means that if there is a nexus with
/// unconventional name that likely means it was not created using nexus
/// rpc api, we return the whole name without modifications as it is.
Convert nexus name to uuid.
This function never fails which means that if there is a nexus with
unconventional name that likely means it was not created using nexus
rpc api, we return the whole name without modifications as it is.
Convert nexus name to uuid . This function never fails which means that if there is a nexus with unconventional name that likely means it was not created using nexus rpc api we return the whole name without modifications as it is .
fn name_to_uuid(name: &str) -> &str {
    if let Some(stripped) = name.strip_prefix("nexus-") {
        stripped
    } else {
        name
    }
}
fn name_to_uuid ( name : & str ) -> & str { if let Some ( stripped ) = name . strip_prefix ( " " ) { stripped } else { name } }
Convert nexus name to uuid.
Convert nexus name to uuid .
name
&str