pub struct ApiSpec {
pub enabled: bool,
pub bind: String,
pub jwt_secret: Option<String>,
pub swagger: bool,
}Expand description
API server configuration (embedded in deploy/up flows)
Fields§
§enabled: boolEnable the API server (default: true)
bind: StringBind address (default: “0.0.0.0:3669”)
jwt_secret: Option<String>JWT secret (reads ZLAYER_JWT_SECRET env var if not set)
swagger: boolEnable Swagger UI (default: true)
Trait Implementations§
Source§impl<'de> Deserialize<'de> for ApiSpec
impl<'de> Deserialize<'de> for ApiSpec
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
impl StructuralPartialEq for ApiSpec
Auto Trait Implementations§
impl Freeze for ApiSpec
impl RefUnwindSafe for ApiSpec
impl Send for ApiSpec
impl Sync for ApiSpec
impl Unpin for ApiSpec
impl UnsafeUnpin for ApiSpec
impl UnwindSafe for ApiSpec
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