Updated dependencies (#48)
* Updated dependencies * Saving changes * More changes * More changes * Updated dependencies * Updated readme * Saving changes * Cleanup
This commit was merged in pull request #48.
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
use crate::models;
|
||||
|
||||
pub fn retrieve_url(api: &models::api::API, with_id: bool, id: i32) -> String {
|
||||
pub fn retrieve_url(api: &models::api::API, with_id: bool, id: &uuid::Uuid) -> String {
|
||||
if with_id {
|
||||
retrieve_url_with_id(&api, id)
|
||||
} else {
|
||||
@@ -10,6 +10,7 @@ pub fn retrieve_url(api: &models::api::API, with_id: bool, id: i32) -> String {
|
||||
|
||||
fn retrieve_url_reg(api: &models::api::API) -> String {
|
||||
let mut url: String = String::from(&api.url);
|
||||
url += &String::from("/");
|
||||
url += &String::from("api/");
|
||||
url += &String::from(&api.version);
|
||||
url += &String::from("/");
|
||||
@@ -19,7 +20,7 @@ fn retrieve_url_reg(api: &models::api::API) -> String {
|
||||
return url;
|
||||
}
|
||||
|
||||
fn retrieve_url_with_id(api: &models::api::API, id: i32) -> String {
|
||||
fn retrieve_url_with_id(api: &models::api::API, id: &uuid::Uuid) -> String {
|
||||
let mut url: String = String::from(&api.url);
|
||||
url += &String::from("api/");
|
||||
url += &String::from(&api.version);
|
||||
|
||||
Reference in New Issue
Block a user