pub trait Serializable {
type Item1: Serializable + Debug;
type Item2: Serializable + Debug;
type Item3: Serializable + Debug;
type Item4: Serializable + Debug;
type Item5: Serializable + Debug;
// Required methods
fn java_class_name(&self) -> String;
fn serial_version_uid(&self) -> u64;
fn get_field<T: Any + Clone + 'static>(s: &Self, field: &str) -> T;
fn set_field<T: Any + Clone + 'static>(s: &mut Self, field: &str, val: T);
fn get_fields(&self) -> Vec<(String, String, i32)>;
fn get_item1(&self) -> Option<&Self::Item1>;
fn get_item2(&self) -> Option<&Self::Item2>;
fn get_item3(&self) -> Option<&Self::Item3>;
fn get_item4(&self) -> Option<&Self::Item4>;
fn get_item5(&self) -> Option<&Self::Item5>;
}
Required Associated Types§
type Item1: Serializable + Debug
type Item2: Serializable + Debug
type Item3: Serializable + Debug
type Item4: Serializable + Debug
type Item5: Serializable + Debug
Required Methods§
fn java_class_name(&self) -> String
fn serial_version_uid(&self) -> u64
fn get_field<T: Any + Clone + 'static>(s: &Self, field: &str) -> T
fn set_field<T: Any + Clone + 'static>(s: &mut Self, field: &str, val: T)
fn get_fields(&self) -> Vec<(String, String, i32)>
fn get_item1(&self) -> Option<&Self::Item1>
fn get_item2(&self) -> Option<&Self::Item2>
fn get_item3(&self) -> Option<&Self::Item3>
fn get_item4(&self) -> Option<&Self::Item4>
fn get_item5(&self) -> Option<&Self::Item5>
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.