pub struct LedgerSource {
pub first_registry_index: RegistryIndex,
pub last_registry_index: RegistryIndex,
pub url: String,
pub content_type: LedgerSourceContentType,
pub accept_ranges: bool,
}
Expand description
Ledger source for a specified registry index range. Expected to be sorted in ascending order.
Fields§
§first_registry_index: RegistryIndex
First registry index that is included in this ledger source.
last_registry_index: RegistryIndex
Last registry index that is included in this ledger source.
url: String
The HTTP GET URL location for the ledger source.
content_type: LedgerSourceContentType
Content type for the ledger source.
accept_ranges: bool
Optional, server accepts for HTTP Range header.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for LedgerSource
impl<'de> Deserialize<'de> for LedgerSource
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for LedgerSource
impl RefUnwindSafe for LedgerSource
impl Send for LedgerSource
impl Sync for LedgerSource
impl Unpin for LedgerSource
impl UnwindSafe for LedgerSource
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> 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 more