pub struct CrudInfo {
pub create_endpoint: String,
pub create_schema: String,
pub update_endpoint: Option<String>,
pub update_schema: Option<String>,
pub read_endpoint: String,
pub read_schema: String,
pub read_response_schema: Option<String>,
pub delete_endpoint: String,
pub delete_schema: String,
}Expand description
CRUD endpoint information for a resource.
Each field maps to an API endpoint path and its corresponding OpenAPI schema
name used for request/response serialization.
Fields§
§create_endpoint: StringAPI path for the create operation (e.g., “/create-secret”).
create_schema: StringOpenAPI schema name for the create request body.
update_endpoint: Option<String>API path for the update operation, if separate from create.
update_schema: Option<String>OpenAPI schema name for the update request body.
read_endpoint: StringAPI path for the read operation.
read_schema: StringOpenAPI schema name for the read request body.
read_response_schema: Option<String>OpenAPI schema name for the read response, if different from the request.
delete_endpoint: StringAPI path for the delete operation.
delete_schema: StringOpenAPI schema name for the delete request body.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for CrudInfo
impl<'de> Deserialize<'de> for CrudInfo
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 From<&CrudMapping> for CrudInfo
impl From<&CrudMapping> for CrudInfo
Source§fn from(crud: &CrudMapping) -> Self
fn from(crud: &CrudMapping) -> Self
Converts to this type from the input type.
Source§impl FromSExpr for CrudInfo
impl FromSExpr for CrudInfo
Source§fn from_sexpr(s: &SExpr) -> Result<Self, SExprError>
fn from_sexpr(s: &SExpr) -> Result<Self, SExprError>
Errors Read more
Auto Trait Implementations§
impl Freeze for CrudInfo
impl RefUnwindSafe for CrudInfo
impl Send for CrudInfo
impl Sync for CrudInfo
impl Unpin for CrudInfo
impl UnsafeUnpin for CrudInfo
impl UnwindSafe for CrudInfo
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