Struct jaded::ObjectData [−][src]
Object data representing serialized Java object
Gives access to field data and class as well as any raw data added via a custom writeObject/writeExternal method.
Implementations
impl ObjectData
[src]
pub fn class_name(&self) -> &str
[src]
Get the fully qualified class name of the type of this object
pub fn get_field(&self, name: &str) -> Option<&Value>
[src]
Get the value associated with a field if it exists
None
indicates that the field is not present. A null
value will
be returned as Some(Value::Null)
.
pub fn get_annotation(&self, ind: usize) -> Option<&Vec<Content>>
[src]
Get the annotations written by a class in this object's class hierachy
eg if Child
extends Parent
, then get_annotation(0)
on an instance of Child
will return
the annotations written by Parent
and get_annotation(1)
will return annotations written
by Child
.
pub fn annotation_count(&self) -> usize
[src]
Get the total number of object annotations added to this object by any of the classes in its class hierarchy.
pub fn field_count(&self) -> usize
[src]
Get the number of fields written for this object
Trait Implementations
impl Debug for ObjectData
[src]
impl PartialEq<ObjectData> for ObjectData
[src]
fn eq(&self, other: &ObjectData) -> bool
[src]
fn ne(&self, other: &ObjectData) -> bool
[src]
impl StructuralPartialEq for ObjectData
[src]
Auto Trait Implementations
impl RefUnwindSafe for ObjectData
[src]
impl Send for ObjectData
[src]
impl Sync for ObjectData
[src]
impl Unpin for ObjectData
[src]
impl UnwindSafe for ObjectData
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,