pub fn default_target(
    platform: &Platform,
    target: Option<&str>,
    service: &str,
    username: &str
) -> PlatformCredential
Expand description

Create the default target credential for a keyring entry. The caller can provide an optional target parameter to influence the mapping.

If any of the provided strings are empty, the credential returned is invalid, to prevent it being used. This is because platform behavior around empty strings for attributes is undefined.