pub struct Property {
pub name: String,
pub value: String,
pub type_hint: Option<String>,
}Expand description
One property with its value rendered as text and the JSON type it came from as a hint.
Fields§
§name: StringProperty name.
value: StringThe value as text: strings verbatim, numbers and booleans in their JSON spelling, arrays and objects as compact JSON.
type_hint: Option<String>The JSON type: string, int, float, boolean, or json
for arrays and objects.
Trait Implementations§
impl Eq for Property
impl StructuralPartialEq for Property
Auto Trait Implementations§
impl Forget for Property
impl Freeze for Property
impl RefUnwindSafe for Property
impl Send for Property
impl Sync for Property
impl Unpin for Property
impl UnsafeUnpin for Property
impl UnwindSafe for Property
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