/// Sign the user out using the OneDrive v1.0 endpoint.
///
/// # Example
/// ```rust,ignore
/// use graph_oauth::oauth::OAuth;
/// let mut oauth = OAuth::new();
///
/// oauth.v1_logout().unwrap();
/// ```
Sign the user out using the OneDrive v1.0 endpoint.
Sign the user out using the OneDrive v1 . 0 endpoint .
pub fn v1_logout(&mut self) -> OAuthReq<Output> {
        let mut url = self.get_or_else(OAuthCredential::LogoutURL)?;
        if !url.ends_with('?') {
            url.push('?');
        }
        let mut vec = vec![
            url,
            "&client_id=".to_string(),
            self.get_or_else(OAuthCredential::ClientId)?,
            "&redirect_uri=".to_string(),
        ];
        if let Some(redirect) = self.get(OAuthCredential::PostLogoutRedirectURI) {
            vec.push(redirect)
        } else if let Some(redirect) = self.get(OAuthCredential::RedirectURI) {
            vec.push(redirect);
        }
        webbrowser::open(vec.join("").as_str()).map_err(GraphFailure::from)
    }
pub fn v1_logout ( & mut self ) -> OAuthReq < Output > { let mut url = self . get_or_else ( OAuthCredential :: LogoutURL ) ? ; if ! url . ends_with ( '?' ) { url . push ( '?' ) ; } let mut vec = vec ! [ url " " to_string ( ) self get_or_else ( OAuthCredential ClientId ) " " to_string ( ) ] ; if let Some ( redirect ) = self . get ( OAuthCredential :: PostLogoutRedirectURI ) { vec . push ( redirect ) } else if let Some ( redirect ) = self . get ( OAuthCredential :: RedirectURI ) { vec . push ( redirect ) ; } webbrowser :: open ( vec . join ( " " ) . as_str ( ) ) . map_err ( GraphFailure :: from ) }
Sign the user out using the OneDrive v1.0 endpoint.
Sign the user out using the OneDrive v1 . 0 endpoint .
&mut self
example
```rust,ignore
use graph_oauth::oauth::OAuth;
let mut oauth = OAuth::new().


` ` ` rust ignore use graph_oauth :: oauth :: OAuth ; let mut oauth = OAuth :: new () .