pub struct TypeBuilder { /* private fields */ }
Expand description
Builder for Type
.
Implementations§
Source§impl TypeBuilder
impl TypeBuilder
Sourcepub fn path<VALUE: Into<JSONPath>>(self, value: VALUE) -> Self
pub fn path<VALUE: Into<JSONPath>>(self, value: VALUE) -> Self
Must be a JSON Pointer If the “path” member is not specified within the predicate object, it’s value is assumed to be an empty string.
pub fn value<VALUE: Into<String>>(self, value: VALUE) -> Self
Sourcepub fn build(self) -> Result<Type, TypeBuilderError>
pub fn build(self) -> Result<Type, TypeBuilderError>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for TypeBuilder
impl RefUnwindSafe for TypeBuilder
impl Send for TypeBuilder
impl Sync for TypeBuilder
impl Unpin for TypeBuilder
impl UnwindSafe for TypeBuilder
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