pub struct Definitions { /* private fields */ }Expand description
Name tables from server_definitions.
Implementations§
Source§impl Definitions
impl Definitions
pub fn transaction_type(&self, code: u16) -> Option<&str>
Sourcepub fn is_transaction_type(&self, name: &str) -> bool
pub fn is_transaction_type(&self, name: &str) -> bool
Whether name, compared without case, is a transaction type.
Sourcepub fn knows_field(&self, type_code: u16, field_code: u16) -> bool
pub fn knows_field(&self, type_code: u16, field_code: u16) -> bool
Whether the field (type code, field code) is in the definitions.
pub fn ledger_entry_type(&self, code: u16) -> Option<&str>
pub fn result(&self, code: i32) -> Option<&str>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Definitions
impl RefUnwindSafe for Definitions
impl Send for Definitions
impl Sync for Definitions
impl Unpin for Definitions
impl UnsafeUnpin for Definitions
impl UnwindSafe for Definitions
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request§impl<L> LayerExt<L> for L
impl<L> LayerExt<L> for L
§fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
Applies the layer to a service and wraps it in [
Layered].