Struct poem_openapi::LicenseObject
source · pub struct LicenseObject { /* private fields */ }
Expand description
A license information for the exposed API.
Implementations§
source§impl LicenseObject
impl LicenseObject
sourcepub fn new(name: impl Into<String>) -> LicenseObject
pub fn new(name: impl Into<String>) -> LicenseObject
Create a license object by name.
sourcepub fn identifier(self, identifier: impl Into<String>) -> Self
pub fn identifier(self, identifier: impl Into<String>) -> Self
Sets the SPDX
license expression for the API.