date filters strongly typed; formatting
This commit is contained in:
+17
-10
@@ -3,32 +3,39 @@ mod macros;
|
||||
|
||||
/// Error types and trait implementations.
|
||||
pub mod error;
|
||||
/// Types for modelling and interacting with [accounts](https://developer.up.com.au/#accounts).
|
||||
/// Types for modelling and interacting with
|
||||
/// [accounts](https://developer.up.com.au/#accounts).
|
||||
pub mod accounts;
|
||||
/// Types for modelling and interacting with [categories](https://developer.up.com.au/#categories).
|
||||
/// Types for modelling and interacting with
|
||||
/// [categories](https://developer.up.com.au/#categories).
|
||||
pub mod categories;
|
||||
/// Types for modelling and interacting with [tags](https://developer.up.com.au/#tags).
|
||||
/// Types for modelling and interacting with
|
||||
/// [tags](https://developer.up.com.au/#tags).
|
||||
pub mod tags;
|
||||
/// Types for modelling and interacting with [transactions](https://developer.up.com.au/#transactions).
|
||||
/// Types for modelling and interacting with
|
||||
/// [transactions](https://developer.up.com.au/#transactions).
|
||||
pub mod transactions;
|
||||
/// Types for modelling and interacting with [utilities](https://developer.up.com.au/#utility_endpoints).
|
||||
/// Types for modelling and interacting with
|
||||
/// [utilities](https://developer.up.com.au/#utility_endpoints).
|
||||
pub mod utilities;
|
||||
/// Types for modelling and interacting with [webhooks](https://developer.up.com.au/#webhooks).
|
||||
/// Types for modelling and interacting with
|
||||
/// [webhooks](https://developer.up.com.au/#webhooks).
|
||||
pub mod webhooks;
|
||||
/// Types which are stardized (and named) across many resources.
|
||||
pub mod standard;
|
||||
|
||||
|
||||
static BASE_URL : &str = "https://api.up.com.au/api/v1";
|
||||
static BASE_URL: &str = "https://api.up.com.au/api/v1";
|
||||
|
||||
/// A client for interacting with the Up API.
|
||||
pub struct Client {
|
||||
access_token : String,
|
||||
access_token: String,
|
||||
}
|
||||
|
||||
impl Client {
|
||||
/// Creates an instance of the `Client` from the access token. Visit [this page](https://api.up.com.au/getting_started) to get such a token.
|
||||
pub fn new(access_token : String) -> Self {
|
||||
/// Creates an instance of the `Client` from the access token. Visit
|
||||
/// [this page](https://api.up.com.au/getting_started) to get such a token.
|
||||
pub fn new(access_token: String) -> Self {
|
||||
Client {
|
||||
access_token
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user