#[non_exhaustive]pub enum ContractKind {
GraphqlType(GraphqlType),
GraphqlField {
operation: Option<GraphqlOperation>,
return_type: String,
},
GraphqlOperation(GraphqlOperation),
GraphqlCall(GraphqlOperation),
GraphqlFragment {
on_type: String,
operation: Option<GraphqlOperation>,
},
GraphqlFragmentSpread,
ProtobufPackage,
ProtobufMessage,
ProtobufEnum,
ProtobufService,
ProtobufRpc {
input: String,
output: String,
client_streaming: bool,
server_streaming: bool,
},
}Expand description
A typed API-contract fact.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
GraphqlType(GraphqlType)
GraphqlField
GraphqlOperation(GraphqlOperation)
GraphqlCall(GraphqlOperation)
GraphqlFragment
GraphqlFragmentSpread
ProtobufPackage
ProtobufMessage
ProtobufEnum
ProtobufService
ProtobufRpc
Trait Implementations§
Source§impl Clone for ContractKind
impl Clone for ContractKind
Source§fn clone(&self) -> ContractKind
fn clone(&self) -> ContractKind
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 ContractKind
impl Debug for ContractKind
impl Eq for ContractKind
Source§impl PartialEq for ContractKind
impl PartialEq for ContractKind
impl StructuralPartialEq for ContractKind
Auto Trait Implementations§
impl Freeze for ContractKind
impl RefUnwindSafe for ContractKind
impl Send for ContractKind
impl Sync for ContractKind
impl Unpin for ContractKind
impl UnsafeUnpin for ContractKind
impl UnwindSafe for ContractKind
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