pub struct Effective {
pub profile: Option<(String, Source)>,
/* private fields */
}Fields§
§profile: Option<(String, Source)>The profile in use and why it was chosen (--profile, TABA_CLI_PROFILE or the file’s default).
Implementations§
Source§impl Effective
impl Effective
pub fn setting(&self, field: &str) -> &Setting
pub fn get(&self, field: &str) -> Option<&str>
pub fn url(&self) -> &str
Sourcepub fn ops_url(&self) -> String
pub fn ops_url(&self) -> String
The operations API address: the ops-url, or the url itself. Without operations.port, the node
serves the operations routes on the client API port.
pub fn number(&self, field: &str) -> u64
Sourcepub fn token_source(&self) -> TokenSource<'_>
pub fn token_source(&self) -> TokenSource<'_>
Which of the two applies when there is both token and token-file: the one of higher precedence (variable, then
profile) and, at the same level, the token-file.
Trait Implementations§
impl Eq for Effective
impl StructuralPartialEq for Effective
Auto Trait Implementations§
impl Freeze for Effective
impl RefUnwindSafe for Effective
impl Send for Effective
impl Sync for Effective
impl Unpin for Effective
impl UnsafeUnpin for Effective
impl UnwindSafe for Effective
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more