pub struct ScalaCaseClass {
pub name: String,
pub type_params: Vec<String>,
pub fields: Vec<ScalaParam>,
pub extends_list: Vec<String>,
}Expand description
A Scala case class declaration.
Example: case class Person(name: String, age: Int) extends Entity
Fields§
§name: StringClass name
type_params: Vec<String>Type parameters: A, B
fields: Vec<ScalaParam>Constructor fields
extends_list: Vec<String>Extends list
Trait Implementations§
Source§impl Clone for ScalaCaseClass
impl Clone for ScalaCaseClass
Source§fn clone(&self) -> ScalaCaseClass
fn clone(&self) -> ScalaCaseClass
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 moreSource§impl Debug for ScalaCaseClass
impl Debug for ScalaCaseClass
Source§impl Display for ScalaCaseClass
impl Display for ScalaCaseClass
Source§impl PartialEq for ScalaCaseClass
impl PartialEq for ScalaCaseClass
impl StructuralPartialEq for ScalaCaseClass
Auto Trait Implementations§
impl Freeze for ScalaCaseClass
impl RefUnwindSafe for ScalaCaseClass
impl Send for ScalaCaseClass
impl Sync for ScalaCaseClass
impl Unpin for ScalaCaseClass
impl UnsafeUnpin for ScalaCaseClass
impl UnwindSafe for ScalaCaseClass
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