rujira 0.4.1

This module provides an API for working with Jira
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
//! This module contains functions for getting the current user.
use crate::Rujira;

use super::{Rq, Rs, REST_BASE};

/// Get the current user
pub fn get(bot: Rujira) -> Rq {
    Rq::new(bot).uri(&format!("{}/myself", REST_BASE))
}

/// Get the name of the current user as a string
pub fn name(rs: Rs) -> String {
    rs.data["displayName"].to_string()
}