pub struct Union {
pub name: String,
pub members: Vec<String>,
}
Fields§
§name: String
§members: Vec<String>
Implementations§
Source§impl Union
impl Union
pub fn from_schema( name: &str, schema: &OpenApiResponseBody<'_>, warnings: WarningReporter, ) -> Option<Self>
pub fn codegen(&self) -> Option<TokenStream>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Union
impl RefUnwindSafe for Union
impl Send for Union
impl Sync for Union
impl Unpin for Union
impl UnwindSafe for Union
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