pub struct Op { /* fields omitted */ }
use _1password::Op;
let op = Op::new("op");
println!("Op Version: {}", op.version().unwrap());
Find op
command line utility by search the current PATH environment variable.
use _1password::Op;
let op = Op::which().unwrap();
println!("Op Version: {}", op.version().unwrap());
Returns version of op
that this struct uses.
Make new session with the specified session token.
Lookup session token for the supplied subdomain in environment.
This will look for an environment variable named OP_SESSION_<subdomain>
and if found
will return a new session that uses the session token stored in that environment variable.
Lookup session token in environment.
This will look for any environment variables matching the pattern OP_SESSION_*
and if
found will return a new session that uses the session token stored in that environment
variable.
If more than one environment variable matching the pattern is found and error is returned.
Formats the value using the given formatter. Read more
Performs copy-assignment from source
. Read more