pub struct MethodDescriptor {Show 13 fields
pub path: &'static str,
pub input: &'static str,
pub output: &'static str,
pub streaming: StreamingShape,
pub effect: RpcEffect,
pub retry_behavior: RetryBehavior,
pub signing_tier: SigningTier,
pub authorization_access: AuthorizationAccess,
pub client_operation_id_required: bool,
pub client_operation_id_field_number: Option<u32>,
pub maturity: ServiceMaturity,
pub deployment_targets: &'static [DeploymentTarget],
pub route: MethodRoute,
}Expand description
Generated transport-neutral method contract.
Fields§
§path: &'static str§input: &'static str§output: &'static str§streaming: StreamingShape§effect: RpcEffect§retry_behavior: RetryBehavior§signing_tier: SigningTier§client_operation_id_required: bool§client_operation_id_field_number: Option<u32>§maturity: ServiceMaturity§deployment_targets: &'static [DeploymentTarget]§route: MethodRouteImplementations§
Source§impl MethodDescriptor
impl MethodDescriptor
Sourcepub const fn allows_zero_rtt(&self) -> bool
pub const fn allows_zero_rtt(&self) -> bool
Whether the contract permits this method on a replayable 0-RTT path.
Sourcepub fn client_operation_id<'a>(
&self,
request: &'a [u8],
) -> Result<Option<&'a str>, RequestMetadataError>
pub fn client_operation_id<'a>( &self, request: &'a [u8], ) -> Result<Option<&'a str>, RequestMetadataError>
Extracts the request’s declared client_operation_id, when its input
message has that field. The generated field number keeps clients and
producers from maintaining handwritten per-route catalogs.
Trait Implementations§
Source§impl Clone for MethodDescriptor
impl Clone for MethodDescriptor
Source§fn clone(&self) -> MethodDescriptor
fn clone(&self) -> MethodDescriptor
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 moreimpl Copy for MethodDescriptor
Source§impl Debug for MethodDescriptor
impl Debug for MethodDescriptor
impl Eq for MethodDescriptor
Source§impl PartialEq for MethodDescriptor
impl PartialEq for MethodDescriptor
impl StructuralPartialEq for MethodDescriptor
Auto Trait Implementations§
impl Freeze for MethodDescriptor
impl RefUnwindSafe for MethodDescriptor
impl Send for MethodDescriptor
impl Sync for MethodDescriptor
impl Unpin for MethodDescriptor
impl UnsafeUnpin for MethodDescriptor
impl UnwindSafe for MethodDescriptor
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