pub struct Profile {
pub kibana_url: String,
pub es_url: Option<String>,
pub api_key: Option<String>,
pub username: Option<String>,
pub password: Option<String>,
pub space: String,
pub verify: bool,
pub timeout_secs: u64,
}Fields§
§kibana_url: String§es_url: Option<String>§api_key: Option<String>§username: Option<String>§password: Option<String>§space: String§verify: bool§timeout_secs: u64Implementations§
Source§impl Profile
impl Profile
Sourcepub fn redacted(&self) -> Profile
pub fn redacted(&self) -> Profile
Return a copy safe to print.
Secrets become ***; absent values remain absent.
Sourcepub fn host(&self) -> String
pub fn host(&self) -> String
Return the Kibana URL host for banners.
Return the original URL when no host can be parsed.
Sourcepub fn strip_userinfo(&mut self)
pub fn strip_userinfo(&mut self)
Remove userinfo from kibana_url and es_url.
Credentials use api_key or username and password; the transport
never reads URL userinfo. Removing it prevents credentials appearing in
the guard banner, config show, or --debug output.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Profile
impl<'de> Deserialize<'de> for Profile
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for Profile
impl StructuralPartialEq for Profile
Auto Trait Implementations§
impl Freeze for Profile
impl RefUnwindSafe for Profile
impl Send for Profile
impl Sync for Profile
impl Unpin for Profile
impl UnsafeUnpin for Profile
impl UnwindSafe for Profile
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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.