pub struct VersioningConfigBuilder { /* private fields */ }
Implementations§
Source§impl VersioningConfigBuilder
impl VersioningConfigBuilder
pub fn new() -> Self
pub fn versions(self, value: HashMap<String, ApiVersion>) -> Self
pub fn strategy(self, value: VersionStrategy) -> Self
pub fn default_version(self, value: Option<String>) -> Self
pub fn include_deprecation_headers(self, value: bool) -> Self
pub fn version_header_name(self, value: String) -> Self
pub fn version_param_name(self, value: String) -> Self
pub fn strict_validation(self, value: bool) -> Self
pub fn build(self) -> Result<VersioningConfig, BuildError>
pub fn build_with_defaults(self) -> Result<VersioningConfig, BuildError>
Auto Trait Implementations§
impl Freeze for VersioningConfigBuilder
impl RefUnwindSafe for VersioningConfigBuilder
impl Send for VersioningConfigBuilder
impl Sync for VersioningConfigBuilder
impl Unpin for VersioningConfigBuilder
impl UnwindSafe for VersioningConfigBuilder
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