pub struct DiscoveredContract {
pub id: String,
pub description: String,
pub visibility: i32,
pub policy: Option<OperationPolicy>,
pub replay_safe: bool,
pub fingerprint: Vec<u8>,
pub protobuf: Option<Protobuf>,
pub grpc: Option<Grpc>,
pub callers: i32,
}Expand description
Advertises an operation’s admitted policy, schema identity and available wire projections.
Fields§
§id: StringComplete admitted operation routing identity; provider ownership is reported separately.
description: String§visibility: i32§policy: Option<OperationPolicy>§replay_safe: boolTrue only for an explicitly replay-safe declaration.
fingerprint: Vec<u8>Expected operation contract digest used for admission; incompatible definitions refuse rather than invoking another shape.
protobuf: Option<Protobuf>Absent for native-only declarations with no public protobuf binding.
grpc: Option<Grpc>§callers: i32Effective callers after runtime composition has narrowed the declaration.
Implementations§
Source§impl DiscoveredContract
impl DiscoveredContract
Sourcepub fn visibility(&self) -> Visibility
pub fn visibility(&self) -> Visibility
Returns the enum value of visibility, or the default if the field is set to an invalid enum value.
Sourcepub fn set_visibility(&mut self, value: Visibility)
pub fn set_visibility(&mut self, value: Visibility)
Sets visibility to the provided enum value.
Sourcepub fn callers(&self) -> Callers
pub fn callers(&self) -> Callers
Returns the enum value of callers, or the default if the field is set to an invalid enum value.
Sourcepub fn set_callers(&mut self, value: Callers)
pub fn set_callers(&mut self, value: Callers)
Sets callers to the provided enum value.
Trait Implementations§
Source§impl Clone for DiscoveredContract
impl Clone for DiscoveredContract
Source§impl Debug for DiscoveredContract
impl Debug for DiscoveredContract
Source§impl Default for DiscoveredContract
impl Default for DiscoveredContract
impl Eq for DiscoveredContract
Source§impl Hash for DiscoveredContract
impl Hash for DiscoveredContract
Source§impl Message for DiscoveredContract
impl Message for DiscoveredContract
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.Source§impl PartialEq for DiscoveredContract
impl PartialEq for DiscoveredContract
Source§impl ReflectMessage for DiscoveredContract
impl ReflectMessage for DiscoveredContract
Source§fn descriptor(&self) -> MessageDescriptor
fn descriptor(&self) -> MessageDescriptor
MessageDescriptor describing the type of this message.Source§fn transcode_to_dynamic(&self) -> DynamicMessagewhere
Self: Sized,
fn transcode_to_dynamic(&self) -> DynamicMessagewhere
Self: Sized,
DynamicMessage by going
through the byte representation.impl StructuralPartialEq for DiscoveredContract
Auto Trait Implementations§
impl Forget for DiscoveredContract
impl Freeze for DiscoveredContract
impl Move for DiscoveredContract
impl RefUnwindSafe for DiscoveredContract
impl Send for DiscoveredContractwhere
RawVecInner: Send,
impl Sync for DiscoveredContractwhere
RawVecInner: Sync,
impl Unpin for DiscoveredContract
impl UnsafeUnpin for DiscoveredContract
impl UnwindSafe for DiscoveredContractwhere
RawVecInner: UnwindSafe,
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
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§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
key and return true if they are equal.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> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::Request