pub struct AppSection {
pub name: String,
pub urls: Vec<String>,
pub max_body_size: usize,
}Expand description
Top-level application section.
Fields§
§name: StringApplication display name.
urls: Vec<String>Listen addresses as full URLs (e.g., “http://0.0.0.0:5000”). ASP.NET Core compatible. Default: [“http://0.0.0.0:5000”].
max_body_size: usizeMaximum request body size in bytes. Default: 10 MB.
Trait Implementations§
Source§impl Clone for AppSection
impl Clone for AppSection
Source§fn clone(&self) -> AppSection
fn clone(&self) -> AppSection
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 AppSection
impl Debug for AppSection
Source§impl Default for AppSection
impl Default for AppSection
Source§impl<'de> Deserialize<'de> for AppSection
impl<'de> Deserialize<'de> for AppSection
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for AppSection
impl RefUnwindSafe for AppSection
impl Send for AppSection
impl Sync for AppSection
impl Unpin for AppSection
impl UnsafeUnpin for AppSection
impl UnwindSafe for AppSection
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