pub struct Registered<'a>(/* private fields */);Expand description
A registered input. See crate::Registry::input.
Implementations§
Source§impl Registered<'_>
impl Registered<'_>
Sourcepub fn tag(&self) -> &'static str
pub fn tag(&self) -> &'static str
Return the input tag of the registered input.
See: Input::tag.
Sourcepub fn example(&self) -> Result<Value>
pub fn example(&self) -> Result<Value>
Return an example JSON for the dynamic type of the input.
See: Input::example.
Trait Implementations§
Source§impl<'a> Clone for Registered<'a>
impl<'a> Clone for Registered<'a>
Source§fn clone(&self) -> Registered<'a>
fn clone(&self) -> Registered<'a>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 Registered<'_>
impl Debug for Registered<'_>
impl<'a> Copy for Registered<'a>
Auto Trait Implementations§
impl<'a> Freeze for Registered<'a>
impl<'a> !RefUnwindSafe for Registered<'a>
impl<'a> !Send for Registered<'a>
impl<'a> !Sync for Registered<'a>
impl<'a> Unpin for Registered<'a>
impl<'a> UnsafeUnpin for Registered<'a>
impl<'a> !UnwindSafe for Registered<'a>
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