pub enum DebitOrCredit {
Debit,
Credit,
}Variants§
Trait Implementations§
Source§impl Clone for DebitOrCredit
impl Clone for DebitOrCredit
Source§fn clone(&self) -> DebitOrCredit
fn clone(&self) -> DebitOrCredit
Returns a copy 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 Debug for DebitOrCredit
impl Debug for DebitOrCredit
Source§impl<'r> Decode<'r, Postgres> for DebitOrCredit
impl<'r> Decode<'r, Postgres> for DebitOrCredit
Source§fn decode(
value: PgValueRef<'r>,
) -> Result<DebitOrCredit, Box<dyn Error + Sync + Send>>
fn decode( value: PgValueRef<'r>, ) -> Result<DebitOrCredit, Box<dyn Error + Sync + Send>>
Decode a new value of this type using a raw value from the database.
Source§impl Default for DebitOrCredit
impl Default for DebitOrCredit
Source§fn default() -> DebitOrCredit
fn default() -> DebitOrCredit
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for DebitOrCredit
impl<'de> Deserialize<'de> for DebitOrCredit
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<DebitOrCredit, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<DebitOrCredit, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for DebitOrCredit
impl Display for DebitOrCredit
Source§impl<'q, DB> Encode<'q, DB> for DebitOrCredit
impl<'q, DB> Encode<'q, DB> for DebitOrCredit
Source§fn encode_by_ref(
&self,
buf: &mut <DB as Database>::ArgumentBuffer<'q>,
) -> Result<IsNull, Box<dyn Error + Sync + Send>>
fn encode_by_ref( &self, buf: &mut <DB as Database>::ArgumentBuffer<'q>, ) -> Result<IsNull, Box<dyn Error + Sync + Send>>
fn size_hint(&self) -> usize
Source§fn encode(
self,
buf: &mut <DB as Database>::ArgumentBuffer<'q>,
) -> Result<IsNull, Box<dyn Error + Sync + Send>>where
Self: Sized,
fn encode(
self,
buf: &mut <DB as Database>::ArgumentBuffer<'q>,
) -> Result<IsNull, Box<dyn Error + Sync + Send>>where
Self: Sized,
Writes the value of
self into buf in the expected format for the database.fn produces(&self) -> Option<<DB as Database>::TypeInfo>
Source§impl EnumType for DebitOrCredit
impl EnumType for DebitOrCredit
Source§fn items() -> &'static [EnumItem<DebitOrCredit>]
fn items() -> &'static [EnumItem<DebitOrCredit>]
Get a list of possible variants of the enum and their values.
Source§impl From<DebitOrCredit> for DebitOrCredit
impl From<DebitOrCredit> for DebitOrCredit
Source§fn from(priority: DebitOrCredit) -> DebitOrCredit
fn from(priority: DebitOrCredit) -> DebitOrCredit
Converts to this type from the input type.
Source§impl From<DebitOrCredit> for DebitOrCredit
impl From<DebitOrCredit> for DebitOrCredit
Source§fn from(dc: DebitOrCredit) -> DebitOrCredit
fn from(dc: DebitOrCredit) -> DebitOrCredit
Converts to this type from the input type.
Source§impl FromStr for DebitOrCredit
impl FromStr for DebitOrCredit
Source§type Err = ParseError
type Err = ParseError
The associated error which can be returned from parsing.
Source§fn from_str(s: &str) -> Result<DebitOrCredit, <DebitOrCredit as FromStr>::Err>
fn from_str(s: &str) -> Result<DebitOrCredit, <DebitOrCredit as FromStr>::Err>
Parses a string
s to return a value of this type. Read moreSource§impl InputType for DebitOrCredit
impl InputType for DebitOrCredit
Source§type RawValueType = DebitOrCredit
type RawValueType = DebitOrCredit
The raw type used for validator. Read more
Source§fn create_type_info(registry: &mut Registry) -> String
fn create_type_info(registry: &mut Registry) -> String
Create type information in the registry and return qualified typename.
Source§fn parse(
value: Option<ConstValue>,
) -> Result<DebitOrCredit, InputValueError<DebitOrCredit>>
fn parse( value: Option<ConstValue>, ) -> Result<DebitOrCredit, InputValueError<DebitOrCredit>>
Parse from
Value. None represents undefined.Source§fn to_value(&self) -> ConstValue
fn to_value(&self) -> ConstValue
Convert to a
Value for introspection.Source§fn as_raw_value(&self) -> Option<&<DebitOrCredit as InputType>::RawValueType>
fn as_raw_value(&self) -> Option<&<DebitOrCredit as InputType>::RawValueType>
Returns a reference to the raw value.
Source§fn qualified_type_name() -> String
fn qualified_type_name() -> String
Qualified typename.
Source§impl OutputType for DebitOrCredit
impl OutputType for DebitOrCredit
Source§fn create_type_info(registry: &mut Registry) -> String
fn create_type_info(registry: &mut Registry) -> String
Create type information in the registry and return qualified typename.
Source§async fn resolve(
&self,
_: &ContextBase<'_, &Positioned<SelectionSet>>,
_field: &Positioned<Field>,
) -> Result<ConstValue, ServerError>
async fn resolve( &self, _: &ContextBase<'_, &Positioned<SelectionSet>>, _field: &Positioned<Field>, ) -> Result<ConstValue, ServerError>
Resolve an output value to
async_graphql::Value.Source§fn qualified_type_name() -> String
fn qualified_type_name() -> String
Qualified typename.
Source§impl PartialEq for DebitOrCredit
impl PartialEq for DebitOrCredit
Source§impl PgHasArrayType for DebitOrCredit
impl PgHasArrayType for DebitOrCredit
fn array_type_info() -> PgTypeInfo
fn array_compatible(ty: &PgTypeInfo) -> bool
Source§impl Serialize for DebitOrCredit
impl Serialize for DebitOrCredit
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Source§impl TryFrom<&str> for DebitOrCredit
impl TryFrom<&str> for DebitOrCredit
Source§type Error = ParseError
type Error = ParseError
The type returned in the event of a conversion error.
Source§fn try_from(
s: &str,
) -> Result<DebitOrCredit, <DebitOrCredit as TryFrom<&str>>::Error>
fn try_from( s: &str, ) -> Result<DebitOrCredit, <DebitOrCredit as TryFrom<&str>>::Error>
Performs the conversion.
Source§impl TryFrom<CelResult<'_>> for DebitOrCredit
impl TryFrom<CelResult<'_>> for DebitOrCredit
Source§type Error = ResultCoercionError
type Error = ResultCoercionError
The type returned in the event of a conversion error.
Source§fn try_from(
_: CelResult<'_>,
) -> Result<DebitOrCredit, <DebitOrCredit as TryFrom<CelResult<'_>>>::Error>
fn try_from( _: CelResult<'_>, ) -> Result<DebitOrCredit, <DebitOrCredit as TryFrom<CelResult<'_>>>::Error>
Performs the conversion.
Source§impl Type<Postgres> for DebitOrCredit
impl Type<Postgres> for DebitOrCredit
impl Copy for DebitOrCredit
impl Eq for DebitOrCredit
impl StructuralPartialEq for DebitOrCredit
Auto Trait Implementations§
impl Freeze for DebitOrCredit
impl RefUnwindSafe for DebitOrCredit
impl Send for DebitOrCredit
impl Sync for DebitOrCredit
impl Unpin for DebitOrCredit
impl UnwindSafe for DebitOrCredit
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<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<T> FutureExt for T
impl<T> FutureExt for T
Source§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
Source§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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 moreSource§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request