pub struct Zero { /* private fields */ }Expand description
Zero API client. Instantiate with a token, than call the .fetch() method to download secrets.
Implementations§
Source§impl Zero
The main client for accessing Zero GraphQL API.
impl Zero
The main client for accessing Zero GraphQL API.
§Example:
use zero_sdk::{Zero, Arguments};
let client = Zero::new(Arguments {
pick: Some(vec![String::from("my-secret")]),
token: String::from("my-zero-token"),
caller_name: None,
})
.unwrap();Auto Trait Implementations§
impl Freeze for Zero
impl RefUnwindSafe for Zero
impl Send for Zero
impl Sync for Zero
impl Unpin for Zero
impl UnsafeUnpin for Zero
impl UnwindSafe for Zero
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