Struct mz_testdrive::parser::ArgMap
source · pub struct ArgMap(BTreeMap<String, String>);
Tuple Fields§
§0: BTreeMap<String, String>
Implementations§
source§impl ArgMap
impl ArgMap
pub fn values_mut(&mut self) -> ValuesMut<'_, String, String>
pub fn opt_string(&mut self, name: &str) -> Option<String>
pub fn string(&mut self, name: &str) -> Result<String, Error>
pub fn opt_parse<T>(&mut self, name: &str) -> Result<Option<T>, Error>where T: FromStr, T::Err: Error + Send + Sync + 'static,
pub fn parse<T>(&mut self, name: &str) -> Result<T, Error>where T: FromStr, T::Err: Error + Send + Sync + 'static,
pub fn opt_bool(&mut self, name: &str) -> Result<Option<bool>, Error>
pub fn done(&self) -> Result<(), Error>
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for ArgMap
impl Send for ArgMap
impl Sync for ArgMap
impl Unpin for ArgMap
impl UnwindSafe for ArgMap
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> CollectionExt<T> for Twhere
T: IntoIterator,
impl<T> CollectionExt<T> for Twhere T: IntoIterator,
source§fn into_first(self) -> <T as IntoIterator>::Item
fn into_first(self) -> <T as IntoIterator>::Item
Consumes the collection and returns its first element. Read more
source§fn into_last(self) -> <T as IntoIterator>::Item
fn into_last(self) -> <T as IntoIterator>::Item
Consumes the collection and returns its last element. Read more
source§fn expect_element<Err>(
self,
msg_fn: impl FnOnce() -> Err
) -> <T as IntoIterator>::Itemwhere
Err: Display,
fn expect_element<Err>( self, msg_fn: impl FnOnce() -> Err ) -> <T as IntoIterator>::Itemwhere Err: Display,
Consumes the collection and returns its only element. Read more
source§fn into_element(self) -> <T as IntoIterator>::Item
fn into_element(self) -> <T as IntoIterator>::Item
Consumes the collection and returns its only element. Read more
source§impl<T> FutureExt for T
impl<T> FutureExt for T
source§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
source§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T
in a tonic::Request
source§impl<T> Pointable for T
impl<T> Pointable for T
source§impl<T> PreferredContainer for Twhere
T: Clone,
impl<T> PreferredContainer for Twhere T: Clone,
source§impl<P, R> ProtoType<R> for Pwhere
R: RustType<P>,
impl<P, R> ProtoType<R> for Pwhere R: RustType<P>,
source§fn into_rust(self) -> Result<R, TryFromProtoError>
fn into_rust(self) -> Result<R, TryFromProtoError>
See
RustType::from_proto
.source§fn from_rust(rust: &R) -> P
fn from_rust(rust: &R) -> P
See
RustType::into_proto
.