Enum pact_ffi::models::generators::GeneratorCategory
source · #[repr(C)]pub enum GeneratorCategory {
METHOD = 0,
PATH = 1,
HEADER = 2,
QUERY = 3,
BODY = 4,
STATUS = 5,
METADATA = 6,
}
Expand description
Enum defining the categories that generators can be applied to
Variants§
METHOD = 0
Request Method
PATH = 1
Request Path
HEADER = 2
Request/Response Header
QUERY = 3
Request Query Parameter
BODY = 4
Body
STATUS = 5
Response Status
METADATA = 6
Message metadata
Trait Implementations§
source§impl Clone for GeneratorCategory
impl Clone for GeneratorCategory
source§fn clone(&self) -> GeneratorCategory
fn clone(&self) -> GeneratorCategory
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 GeneratorCategory
impl Debug for GeneratorCategory
source§impl From<GeneratorCategory> for GeneratorCategory
impl From<GeneratorCategory> for GeneratorCategory
source§fn from(category: GeneratorCategory) -> CoreGeneratorCategory
fn from(category: GeneratorCategory) -> CoreGeneratorCategory
Converts to this type from the input type.
source§impl From<GeneratorCategory> for GeneratorCategory
impl From<GeneratorCategory> for GeneratorCategory
source§fn from(category: CoreGeneratorCategory) -> GeneratorCategory
fn from(category: CoreGeneratorCategory) -> GeneratorCategory
Converts to this type from the input type.
source§impl PartialEq for GeneratorCategory
impl PartialEq for GeneratorCategory
source§fn eq(&self, other: &GeneratorCategory) -> bool
fn eq(&self, other: &GeneratorCategory) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for GeneratorCategory
impl StructuralPartialEq for GeneratorCategory
Auto Trait Implementations§
impl Freeze for GeneratorCategory
impl RefUnwindSafe for GeneratorCategory
impl Send for GeneratorCategory
impl Sync for GeneratorCategory
impl Unpin for GeneratorCategory
impl UnwindSafe for GeneratorCategory
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> 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