pub struct RustStruct {
pub name: String,
pub doc_comment: Option<String>,
pub fields: Vec<RustField>,
pub derives: Vec<String>,
pub is_public: bool,
pub base_definition: Option<String>,
}Expand description
Represents a generated Rust struct
Fields§
§name: String§doc_comment: Option<String>§fields: Vec<RustField>§derives: Vec<String>§is_public: bool§base_definition: Option<String>Implementations§
Trait Implementations§
Source§impl Clone for RustStruct
impl Clone for RustStruct
Source§fn clone(&self) -> RustStruct
fn clone(&self) -> RustStruct
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for RustStruct
impl RefUnwindSafe for RustStruct
impl Send for RustStruct
impl Sync for RustStruct
impl Unpin for RustStruct
impl UnsafeUnpin for RustStruct
impl UnwindSafe for RustStruct
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