pub struct SerdeAttrs {
pub rename: Option<String>,
pub rename_all: Option<String>,
pub skip: bool,
pub default: bool,
pub tag: Option<String>,
pub content: Option<String>,
pub untagged: bool,
}Expand description
Parsed #[serde(...)] attributes relevant to orpc schema generation.
Fields§
§rename: Option<String>#[serde(rename = "name")] or #[serde(rename(deserialize = "name"))]
rename_all: Option<String>#[serde(rename_all = "camelCase")] on containers
skip: bool#[serde(skip)] or #[serde(skip_serializing)]
default: bool#[serde(default)]
tag: Option<String>#[serde(tag = "type")] on enum containers
content: Option<String>#[serde(content = "data")] on enum containers
untagged: bool#[serde(untagged)] on enum containers
Trait Implementations§
Source§impl Debug for SerdeAttrs
impl Debug for SerdeAttrs
Source§impl Default for SerdeAttrs
impl Default for SerdeAttrs
Source§fn default() -> SerdeAttrs
fn default() -> SerdeAttrs
Returns the “default value” for a type. Read more
Source§impl PartialEq for SerdeAttrs
impl PartialEq for SerdeAttrs
impl StructuralPartialEq for SerdeAttrs
Auto Trait Implementations§
impl Freeze for SerdeAttrs
impl RefUnwindSafe for SerdeAttrs
impl Send for SerdeAttrs
impl Sync for SerdeAttrs
impl Unpin for SerdeAttrs
impl UnsafeUnpin for SerdeAttrs
impl UnwindSafe for SerdeAttrs
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