pub struct RemoteObjectBuilder { /* private fields */ }Available on crate feature
Runtime only.Implementations§
Source§impl RemoteObjectBuilder
impl RemoteObjectBuilder
Sourcepub fn type(&mut self, v: RemoteObjectType) -> &mut Self
pub fn type(&mut self, v: RemoteObjectType) -> &mut Self
Object type.
Sourcepub fn subtype(&mut self, v: RemoteObjectSubtype) -> &mut Self
pub fn subtype(&mut self, v: RemoteObjectSubtype) -> &mut Self
Object subtype hint. Specified for object type values only.
NOTE: If you change anything here, make sure to also update
subtype in ObjectPreview and PropertyPreview below.
Sourcepub fn class_name(&mut self, v: String) -> &mut Self
pub fn class_name(&mut self, v: String) -> &mut Self
Object class (constructor) name. Specified for object type values only.
Sourcepub fn value(&mut self, v: JsonValue) -> &mut Self
pub fn value(&mut self, v: JsonValue) -> &mut Self
Remote object value in case of primitive values or JSON values (if it was requested).
Sourcepub fn unserializable_value(&mut self, v: UnserializableValue) -> &mut Self
pub fn unserializable_value(&mut self, v: UnserializableValue) -> &mut Self
Primitive value which can not be JSON-stringified does not have value, but gets this
property.
Sourcepub fn description(&mut self, v: String) -> &mut Self
pub fn description(&mut self, v: String) -> &mut Self
String representation of the object.
Sourcepub fn object_id(&mut self, v: RemoteObjectId) -> &mut Self
pub fn object_id(&mut self, v: RemoteObjectId) -> &mut Self
Unique object identifier (for non-primitive values).
Sourcepub fn preview(&mut self, v: JsonValue) -> &mut Self
Available on crate feature experimental only.
pub fn preview(&mut self, v: JsonValue) -> &mut Self
experimental only.Preview containing abbreviated property values. Specified for object type values only.
pub fn custom_preview(&mut self, v: JsonValue) -> &mut Self
Available on crate feature
experimental only.pub fn build(&mut self) -> Result<RemoteObject, &'static str>
Trait Implementations§
Source§impl Clone for RemoteObjectBuilder
impl Clone for RemoteObjectBuilder
Source§fn clone(&self) -> RemoteObjectBuilder
fn clone(&self) -> RemoteObjectBuilder
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 RemoteObjectBuilder
impl Debug for RemoteObjectBuilder
Auto Trait Implementations§
impl Freeze for RemoteObjectBuilder
impl RefUnwindSafe for RemoteObjectBuilder
impl Send for RemoteObjectBuilder
impl Sync for RemoteObjectBuilder
impl Unpin for RemoteObjectBuilder
impl UnwindSafe for RemoteObjectBuilder
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