pub struct UbiClient {
pub kc: KCClient,
pub project: Project,
/* private fields */
}Expand description
The UbiClient struct represents a client for interacting with the Ubicloud API.
Fields§
§kc: KCClient§project: ProjectImplementations§
Source§impl UbiClient
impl UbiClient
Sourcepub fn new(base_url: &str, version: &str, token: &str) -> UbiClient
pub fn new(base_url: &str, version: &str, token: &str) -> UbiClient
Creates a new UbiClient instance with the provided base URL, version, and token.
§Arguments
base_url- The base URL of the Ubicloud API.version- The version of the Ubicloud API.token- The authentication token.
§Returns
A new UbiClient instance.
§Example
let client = UbiClient::new("https://api.ubicloud.com", "", "your_token_here");Auto Trait Implementations§
impl Freeze for UbiClient
impl !RefUnwindSafe for UbiClient
impl Send for UbiClient
impl Sync for UbiClient
impl Unpin for UbiClient
impl !UnwindSafe for UbiClient
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more