Struct juniper::meta::ScalarMeta [−][src]
pub struct ScalarMeta<'a, S> { /* fields omitted */ }
Expand description
Scalar type metadata
Implementations
impl<'a, S> ScalarMeta<'a, S> where
S: ScalarValue + 'a,
[src]
impl<'a, S> ScalarMeta<'a, S> where
S: ScalarValue + 'a,
[src]pub fn new<T>(name: Cow<'a, str>) -> Self where
T: FromInputValue<S> + ParseScalarValue<S> + 'a,
[src]
pub fn new<T>(name: Cow<'a, str>) -> Self where
T: FromInputValue<S> + ParseScalarValue<S> + 'a,
[src]Build a new scalar type metadata with the specified name
pub fn description(self, description: &str) -> ScalarMeta<'a, S>
[src]
pub fn description(self, description: &str) -> ScalarMeta<'a, S>
[src]Set the description for the given scalar type
If a description already was set prior to calling this method, it will be overwritten.
Trait Implementations
Auto Trait Implementations
impl<'a, S> RefUnwindSafe for ScalarMeta<'a, S>
impl<'a, S> Send for ScalarMeta<'a, S>
impl<'a, S> Sync for ScalarMeta<'a, S>
impl<'a, S> Unpin for ScalarMeta<'a, S>
impl<'a, S> UnwindSafe for ScalarMeta<'a, S>
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,