pub struct LedgerDataLoader {
pub ledger: CalaLedger,
}Fields§
§ledger: CalaLedgerTrait Implementations§
Source§impl Loader<AccountId> for LedgerDataLoader
impl Loader<AccountId> for LedgerDataLoader
Source§impl Loader<AccountSetId> for LedgerDataLoader
impl Loader<AccountSetId> for LedgerDataLoader
Source§type Value = AccountSet
type Value = AccountSet
type of value.
Source§type Error = Arc<AccountSetError>
type Error = Arc<AccountSetError>
Type of error.
Source§async fn load(
&self,
keys: &[AccountSetId],
) -> Result<HashMap<AccountSetId, AccountSet>, Self::Error>
async fn load( &self, keys: &[AccountSetId], ) -> Result<HashMap<AccountSetId, AccountSet>, Self::Error>
Load the data set specified by the
keys.Source§impl Loader<JournalId> for LedgerDataLoader
impl Loader<JournalId> for LedgerDataLoader
Source§impl Loader<TransactionId> for LedgerDataLoader
impl Loader<TransactionId> for LedgerDataLoader
Source§type Value = Transaction
type Value = Transaction
type of value.
Source§type Error = Arc<TransactionError>
type Error = Arc<TransactionError>
Type of error.
Source§async fn load(
&self,
keys: &[TransactionId],
) -> Result<HashMap<TransactionId, Transaction>, Self::Error>
async fn load( &self, keys: &[TransactionId], ) -> Result<HashMap<TransactionId, Transaction>, Self::Error>
Load the data set specified by the
keys.Source§impl Loader<TxTemplateId> for LedgerDataLoader
impl Loader<TxTemplateId> for LedgerDataLoader
Source§type Value = TxTemplate
type Value = TxTemplate
type of value.
Source§type Error = Arc<TxTemplateError>
type Error = Arc<TxTemplateError>
Type of error.
Source§async fn load(
&self,
keys: &[TxTemplateId],
) -> Result<HashMap<TxTemplateId, TxTemplate>, Self::Error>
async fn load( &self, keys: &[TxTemplateId], ) -> Result<HashMap<TxTemplateId, TxTemplate>, Self::Error>
Load the data set specified by the
keys.Source§impl Loader<VelocityControlId> for LedgerDataLoader
impl Loader<VelocityControlId> for LedgerDataLoader
Source§type Value = VelocityControl
type Value = VelocityControl
type of value.
Source§type Error = Arc<VelocityError>
type Error = Arc<VelocityError>
Type of error.
Source§async fn load(
&self,
keys: &[VelocityControlId],
) -> Result<HashMap<VelocityControlId, VelocityControl>, Self::Error>
async fn load( &self, keys: &[VelocityControlId], ) -> Result<HashMap<VelocityControlId, VelocityControl>, Self::Error>
Load the data set specified by the
keys.Source§impl Loader<VelocityLimitId> for LedgerDataLoader
impl Loader<VelocityLimitId> for LedgerDataLoader
Source§type Value = VelocityLimit
type Value = VelocityLimit
type of value.
Source§type Error = Arc<VelocityError>
type Error = Arc<VelocityError>
Type of error.
Source§async fn load(
&self,
keys: &[VelocityLimitId],
) -> Result<HashMap<VelocityLimitId, VelocityLimit>, Self::Error>
async fn load( &self, keys: &[VelocityLimitId], ) -> Result<HashMap<VelocityLimitId, VelocityLimit>, Self::Error>
Load the data set specified by the
keys.Auto Trait Implementations§
impl Freeze for LedgerDataLoader
impl !RefUnwindSafe for LedgerDataLoader
impl Send for LedgerDataLoader
impl Sync for LedgerDataLoader
impl Unpin for LedgerDataLoader
impl !UnwindSafe for LedgerDataLoader
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
Source§impl<T> FutureExt for T
impl<T> FutureExt for T
Source§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
Source§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
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> 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