pub struct RpcContract {Show 15 fields
pub signing_identity: i32,
pub signing_tier: i32,
pub effect: i32,
pub retry_behavior: i32,
pub client_operation_id_required: bool,
pub capability: i32,
pub authorization_access: i32,
pub authorization_role: i32,
pub authorization_scope_source: i32,
pub authorization_existence: i32,
pub authorization_request_targets: Vec<AuthorizationRequestTarget>,
pub authorization_multi_target: bool,
pub deployment_targets: Vec<i32>,
pub maturity: i32,
pub live_stream: bool,
}Fields§
§signing_identity: i32§signing_tier: i32§effect: i32§retry_behavior: i32§client_operation_id_required: bool§capability: i32Every request field that selects an authorization guard target and the role required for that target. Every populated selector is guarded; request-derived scope sources require at least one target, while non-request scope sources prohibit targets.
True when the authorization rule deliberately has multiple request targets. Audits reject a mismatch so a multi-resource rule cannot silently collapse to one selector.
deployment_targets: Vec<i32>Optional per-method deployment override. Empty inherits the service contract.
maturity: i32Optional per-method maturity override. UNSPECIFIED inherits the service contract.
live_stream: boolTrue only for long-lived response streams that may be quiet between complete messages. Initial response and partial-frame deadlines still apply. False retains finite-operation progress deadlines. Resumability alone does not imply liveness: source transfers are finite streams.
Implementations§
Source§impl RpcContract
impl RpcContract
Sourcepub fn signing_identity(&self) -> StableSigningIdentity
pub fn signing_identity(&self) -> StableSigningIdentity
Returns the enum value of signing_identity, or the default if the field is set to an invalid enum value.
Sourcepub fn set_signing_identity(&mut self, value: StableSigningIdentity)
pub fn set_signing_identity(&mut self, value: StableSigningIdentity)
Sets signing_identity to the provided enum value.
Sourcepub fn signing_tier(&self) -> SigningTier
pub fn signing_tier(&self) -> SigningTier
Returns the enum value of signing_tier, or the default if the field is set to an invalid enum value.
Sourcepub fn set_signing_tier(&mut self, value: SigningTier)
pub fn set_signing_tier(&mut self, value: SigningTier)
Sets signing_tier to the provided enum value.
Sourcepub fn effect(&self) -> RpcEffect
pub fn effect(&self) -> RpcEffect
Returns the enum value of effect, or the default if the field is set to an invalid enum value.
Sourcepub fn set_effect(&mut self, value: RpcEffect)
pub fn set_effect(&mut self, value: RpcEffect)
Sets effect to the provided enum value.
Sourcepub fn retry_behavior(&self) -> RetryBehavior
pub fn retry_behavior(&self) -> RetryBehavior
Returns the enum value of retry_behavior, or the default if the field is set to an invalid enum value.
Sourcepub fn set_retry_behavior(&mut self, value: RetryBehavior)
pub fn set_retry_behavior(&mut self, value: RetryBehavior)
Sets retry_behavior to the provided enum value.
Sourcepub fn capability(&self) -> CapabilityArea
pub fn capability(&self) -> CapabilityArea
Returns the enum value of capability, or the default if the field is set to an invalid enum value.
Sourcepub fn set_capability(&mut self, value: CapabilityArea)
pub fn set_capability(&mut self, value: CapabilityArea)
Sets capability to the provided enum value.
Returns the enum value of authorization_access, or the default if the field is set to an invalid enum value.
Sets authorization_access to the provided enum value.
Returns the enum value of authorization_role, or the default if the field is set to an invalid enum value.
Sets authorization_role to the provided enum value.
Returns the enum value of authorization_scope_source, or the default if the field is set to an invalid enum value.
Sets authorization_scope_source to the provided enum value.
Returns the enum value of authorization_existence, or the default if the field is set to an invalid enum value.
Sets authorization_existence to the provided enum value.
Sourcepub fn deployment_targets(
&self,
) -> FilterMap<Cloned<Iter<'_, i32>>, fn(i32) -> Option<DeploymentTarget>> ⓘ
pub fn deployment_targets( &self, ) -> FilterMap<Cloned<Iter<'_, i32>>, fn(i32) -> Option<DeploymentTarget>> ⓘ
Returns an iterator which yields the valid enum values contained in deployment_targets.
Sourcepub fn push_deployment_targets(&mut self, value: DeploymentTarget)
pub fn push_deployment_targets(&mut self, value: DeploymentTarget)
Appends the provided enum value to deployment_targets.
Sourcepub fn maturity(&self) -> ServiceMaturity
pub fn maturity(&self) -> ServiceMaturity
Returns the enum value of maturity, or the default if the field is set to an invalid enum value.
Sourcepub fn set_maturity(&mut self, value: ServiceMaturity)
pub fn set_maturity(&mut self, value: ServiceMaturity)
Sets maturity to the provided enum value.
Trait Implementations§
Source§impl Clone for RpcContract
impl Clone for RpcContract
Source§impl Debug for RpcContract
impl Debug for RpcContract
Source§impl Default for RpcContract
impl Default for RpcContract
Source§impl Message for RpcContract
impl Message for RpcContract
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
Source§fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
Source§fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self. Read moreSource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self.