[−][src]Function cynic::selection_set::succeed
pub fn succeed<'a, V>(value: V) -> SelectionSet<'a, V, ()> where
V: Clone + Send + Sync + 'a,
Creates a SelectionSet
that always decodes succesfully to a particular value
This is handy when used with SelectionSet::and_then
- you can return a specific
hard coded value in some case.