Struct hop::HopOptions
source · pub struct HopOptions {
pub token: Option<String>,
pub api_url: Option<String>,
}
Fields§
§token: Option<String>
The API token to use for requests to the Hop API. Can be one of the following:
- A Personal Access Token (PAT) generated from the Hop console
- A Bearer token when using the Hop API directly
- A Project Token generated from the Hop console
api_url: Option<String>
The base URL to use for requests to the Hop API. This is useful for testing against a local Hop instance. If not provided, the default Hop API URL will be used.
Trait Implementations§
source§impl Clone for HopOptions
impl Clone for HopOptions
source§fn clone(&self) -> HopOptions
fn clone(&self) -> HopOptions
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for HopOptions
impl Debug for HopOptions
source§impl Default for HopOptions
impl Default for HopOptions
source§fn default() -> HopOptions
fn default() -> HopOptions
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl RefUnwindSafe for HopOptions
impl Send for HopOptions
impl Sync for HopOptions
impl Unpin for HopOptions
impl UnwindSafe for HopOptions
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