pub struct ReadMapping {
pub endpoint: String,
pub schema: String,
pub response_schema: Option<String>,
}Expand description
Maps a read operation to an API endpoint and schema.
Fields§
§endpoint: StringAPI path for the read operation.
schema: StringOpenAPI schema name for the read request body.
response_schema: Option<String>OpenAPI schema name for the read response, if different.
Trait Implementations§
Source§impl Clone for ReadMapping
impl Clone for ReadMapping
Source§impl Debug for ReadMapping
impl Debug for ReadMapping
Source§impl<'de> Deserialize<'de> for ReadMapping
impl<'de> Deserialize<'de> for ReadMapping
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
Auto Trait Implementations§
impl Freeze for ReadMapping
impl RefUnwindSafe for ReadMapping
impl Send for ReadMapping
impl Sync for ReadMapping
impl Unpin for ReadMapping
impl UnsafeUnpin for ReadMapping
impl UnwindSafe for ReadMapping
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