pub async fn delete_device_identity<S>(
        &self,
        device_id: S,
        if_match: Option<String>,
    ) -> Result<(), AzureError>
    where
        S: Into<String>,
    {
        delete_identity(&self, if_match, device_id.into(), None).await
    }
/// Create a new device identity
///
/// The if-match value can either be Some(String) or None. When if-match is None,
/// an unconditional delete will be performed.
///
/// ```
/// use iothub::service::{ServiceClient};
/// use serde_json;
/// # let connection_string = "HostName=cool-iot-hub.azure-devices.net;SharedAccessKeyName=iothubowner;SharedAccessKey=YSB2ZXJ5IHNlY3VyZSBrZXkgaXMgaW1wb3J0YW50Cg==";
/// let iothub = ServiceClient::from_connection_string(connection_string, 3600).expect("Failed to create the ServiceClient!");
/// let device = iothub.delete_device_identity("some-device-id", None);
/// ```
Create a new device identity
The if-match value can either be Some(String) or None. When if-match is None,
an unconditional delete will be performed.


Create a new device identity The if - match value can either be Some ( String ) or None . When if - match is None an unconditional delete will be performed .
pub async fn delete_device_identity<S>(
        &self,
        device_id: S,
        if_match: Option<String>,
    ) -> Result<(), AzureError>
    where
        S: Into<String>,
    {
        delete_identity(&self, if_match, device_id.into(), None).await
    }
pub async fn delete_device_identity < S > ( & self , device_id : S , if_match : Option < String > , ) -> Result < ( ) , AzureError > where S : Into < String > , { delete_identity ( & self , if_match , device_id . into ( ) , None ) . await }
Create a new device identity
The if-match value can either be Some(String) or None.
Create a new device identity The if - match value can either be Some ( String ) or None .
&self
device_id
S
if_match
Option<String>
let connection_string = "hostname=cool-iot-hub.azure-devices.net;sharedaccesskeyname=iothubowner;sharedaccesskey=ysb2zxj5ihnly3vyzsbrzxkgaxmgaw1wb3j0yw50cg==";
let iothub = ServiceClient::from_connection_string(connection_string, 3600).expect("Failed to create the ServiceClient!");
let device = iothub.delete_device_identity("some-device-id", None);
```
let iothub = ServiceClient :: from_connection_string ( connection_string 3600 ) . expect ( " Failed to create the ServiceClient! " ) ; let device = iothub . delete_device_identity ( " some - device - id " None ) ; ` ` `