#[non_exhaustive]pub struct HttpService {
pub tls: bool,
pub port: u16,
pub path: String,
pub version: String,
pub openapi: Option<String>,
pub extra_txt: Vec<(String, String)>,
}Available on crate feature
alloc only.Expand description
A REST API advertised as _http._tcp or _https._tcp (ebus.py:445-477).
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.tls: bool_https._tcp when true.
port: u16The API’s port.
path: Stringpath: the API base path.
version: Stringversion: the API version, 1.0 by default.
openapi: Option<String>openapi: the OpenAPI document’s path.
extra_txt: Vec<(String, String)>Keys the specification does not define.
Implementations§
Source§impl HttpService
impl HttpService
Sourcepub fn service_type(&self) -> &'static str
pub fn service_type(&self) -> &'static str
_https._tcp or _http._tcp.
Trait Implementations§
Source§impl Clone for HttpService
impl Clone for HttpService
Source§impl Debug for HttpService
impl Debug for HttpService
impl Eq for HttpService
Source§impl PartialEq for HttpService
impl PartialEq for HttpService
impl StructuralPartialEq for HttpService
Auto Trait Implementations§
impl Freeze for HttpService
impl RefUnwindSafe for HttpService
impl Send for HttpService
impl Sync for HttpService
impl Unpin for HttpService
impl UnsafeUnpin for HttpService
impl UnwindSafe for HttpService
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