pub struct HttpApiConfig {
pub host: String,
pub port: u16,
pub enabled: bool,
pub max_payload_bytes: usize,
}Expand description
Runtime HTTP listener and request-size configuration.
Fields§
§host: StringInterface or address to bind.
port: u16TCP port to bind.
enabled: boolWhether the embedded listener should run.
max_payload_bytes: usizeMaximum accepted request body size in bytes.
Trait Implementations§
Source§impl Clone for HttpApiConfig
impl Clone for HttpApiConfig
Source§fn clone(&self) -> HttpApiConfig
fn clone(&self) -> HttpApiConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for HttpApiConfig
impl Debug for HttpApiConfig
Source§impl Default for HttpApiConfig
impl Default for HttpApiConfig
impl Eq for HttpApiConfig
Source§impl PartialEq for HttpApiConfig
impl PartialEq for HttpApiConfig
impl StructuralPartialEq for HttpApiConfig
Auto Trait Implementations§
impl Freeze for HttpApiConfig
impl RefUnwindSafe for HttpApiConfig
impl Send for HttpApiConfig
impl Sync for HttpApiConfig
impl Unpin for HttpApiConfig
impl UnsafeUnpin for HttpApiConfig
impl UnwindSafe for HttpApiConfig
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