pub struct Config<'data> { /* private fields */ }Expand description
Runtime configuration for the media-type-version library.
Implementations§
Source§impl<'data> Config<'data>
impl<'data> Config<'data>
Sourcepub const fn suffix(&self) -> &str
pub const fn suffix(&self) -> &str
The suffix (possibly empty) to strip from the media type string.
Sourcepub fn builder() -> ConfigBuilder<'data>
pub fn builder() -> ConfigBuilder<'data>
Start building a configuration object.
Sourcepub const fn test_config_from_parts(
prefix: &'data str,
suffix: &'data str,
) -> Self
pub const fn test_config_from_parts( prefix: &'data str, suffix: &'data str, ) -> Self
For test porpoises only, build something out of things.
Auto Trait Implementations§
impl<'data> Freeze for Config<'data>
impl<'data> RefUnwindSafe for Config<'data>
impl<'data> Send for Config<'data>
impl<'data> Sync for Config<'data>
impl<'data> Unpin for Config<'data>
impl<'data> UnsafeUnpin for Config<'data>
impl<'data> UnwindSafe for Config<'data>
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