pub struct ViewFunctionInput<'info, TypeId> {
pub name: Cow<'info, str>,
pub id: TypeId,
}Expand description
Information about a specific input value to a View Function.
Fields§
§name: Cow<'info, str>Name of the input.
id: TypeIdType of the input.
Implementations§
Source§impl<'info, TypeId: Clone> ViewFunctionInput<'info, TypeId>
impl<'info, TypeId: Clone> ViewFunctionInput<'info, TypeId>
Sourcepub fn into_owned(self) -> ViewFunctionInput<'static, TypeId>
pub fn into_owned(self) -> ViewFunctionInput<'static, TypeId>
Take ownership of this input, turning any lifetimes to 'static.
Trait Implementations§
Source§impl<'info, TypeId: Clone> Clone for ViewFunctionInput<'info, TypeId>
impl<'info, TypeId: Clone> Clone for ViewFunctionInput<'info, TypeId>
Source§fn clone(&self) -> ViewFunctionInput<'info, TypeId>
fn clone(&self) -> ViewFunctionInput<'info, TypeId>
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<'info, TypeId: Debug> Debug for ViewFunctionInput<'info, TypeId>
impl<'info, TypeId: Debug> Debug for ViewFunctionInput<'info, TypeId>
Source§impl<'info, TypeId: PartialEq> PartialEq for ViewFunctionInput<'info, TypeId>
impl<'info, TypeId: PartialEq> PartialEq for ViewFunctionInput<'info, TypeId>
Source§fn eq(&self, other: &ViewFunctionInput<'info, TypeId>) -> bool
fn eq(&self, other: &ViewFunctionInput<'info, TypeId>) -> bool
Tests for
self and other values to be equal, and is used by ==.impl<'info, TypeId: Eq> Eq for ViewFunctionInput<'info, TypeId>
impl<'info, TypeId> StructuralPartialEq for ViewFunctionInput<'info, TypeId>
Auto Trait Implementations§
impl<'info, TypeId> Freeze for ViewFunctionInput<'info, TypeId>where
TypeId: Freeze,
impl<'info, TypeId> RefUnwindSafe for ViewFunctionInput<'info, TypeId>where
TypeId: RefUnwindSafe,
impl<'info, TypeId> Send for ViewFunctionInput<'info, TypeId>where
TypeId: Send,
impl<'info, TypeId> Sync for ViewFunctionInput<'info, TypeId>where
TypeId: Sync,
impl<'info, TypeId> Unpin for ViewFunctionInput<'info, TypeId>where
TypeId: Unpin,
impl<'info, TypeId> UnwindSafe for ViewFunctionInput<'info, TypeId>where
TypeId: UnwindSafe,
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more