Struct jormungandr_lib::interfaces::config::node::Rest
source · pub struct Rest {
pub listen: SocketAddr,
pub tls: Option<Tls>,
pub cors: Option<Cors>,
}
Fields§
§listen: SocketAddr
§tls: Option<Tls>
Enables TLS and disables plain HTTP if provided
cors: Option<Cors>
Enables CORS if provided
Trait Implementations§
source§impl<'de> Deserialize<'de> for Rest
impl<'de> Deserialize<'de> for Rest
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
source§impl PartialEq<Rest> for Rest
impl PartialEq<Rest> for Rest
impl Eq for Rest
impl StructuralEq for Rest
impl StructuralPartialEq for Rest
Auto Trait Implementations§
impl RefUnwindSafe for Rest
impl Send for Rest
impl Sync for Rest
impl Unpin for Rest
impl UnwindSafe for Rest
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