pub struct BridgeConfigData { /* private fields */ }Expand description
Daml Bridge configuration.
Implementations§
Source§impl BridgeConfigData
impl BridgeConfigData
pub const fn new( ledger_uri: String, ledger_connect_timeout: Duration, ledger_timeout: Duration, ledger_token: String, http_host: String, http_port: u16, package_reload_interval: Duration, encode_int64_as_string: bool, encode_decimal_as_string: bool, ) -> Self
pub fn ledger_uri(&self) -> &str
pub const fn ledger_connect_timeout(&self) -> Duration
pub const fn ledger_timeout(&self) -> Duration
pub fn ledger_token(&self) -> &str
pub fn http_host(&self) -> &str
pub const fn http_port(&self) -> u16
pub const fn package_reload_interval(&self) -> Duration
pub const fn encode_int64_as_string(&self) -> bool
pub const fn encode_decimal_as_string(&self) -> bool
Trait Implementations§
Auto Trait Implementations§
impl Freeze for BridgeConfigData
impl RefUnwindSafe for BridgeConfigData
impl Send for BridgeConfigData
impl Sync for BridgeConfigData
impl Unpin for BridgeConfigData
impl UnsafeUnpin for BridgeConfigData
impl UnwindSafe for BridgeConfigData
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
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