pub struct Extractor<'a> { /* private fields */ }Expand description
Replaces the sensitive literals of one server’s fields by references.
Implementations§
Source§impl<'a> Extractor<'a>
impl<'a> Extractor<'a>
Sourcepub fn new(server: &'a str, aliases: &'a mut Aliases) -> Self
pub fn new(server: &'a str, aliases: &'a mut Aliases) -> Self
Extracts for store server server (aliases are <SERVER>_<KEY>).
Sourcepub fn args(&mut self, args: Vec<String>) -> Vec<String>
pub fn args(&mut self, args: Vec<String>) -> Vec<String>
Arguments with each sensitive one (or the value part of
--flag=value) replaced by a reference.
Sourcepub fn url(&mut self, url: String) -> Result<String, CoreError>
pub fn url(&mut self, url: String) -> Result<String, CoreError>
The URL with each credential part (userinfo, token query parameter,
token-shaped text) replaced by a reference. A URL the classifier
flags without a part to cut out is needs_secret_extraction (edit
it by hand).
Auto Trait Implementations§
impl<'a> !UnwindSafe for Extractor<'a>
impl<'a> Forget for Extractor<'a>
impl<'a> Freeze for Extractor<'a>
impl<'a> Move for Extractor<'a>
impl<'a> RefUnwindSafe for Extractor<'a>
impl<'a> Send for Extractor<'a>
impl<'a> Sync for Extractor<'a>
impl<'a> Unpin for Extractor<'a>
impl<'a> UnsafeUnpin for Extractor<'a>where
&'a str: UnsafeUnpin,
&'a mut Aliases: UnsafeUnpin,
*const u8 is !null: UnsafeUnpin,
PhantomData<Extracted>: UnsafeUnpin,
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