pub struct FetchLogsRequest<'a> {
pub log_length: RegistryLen,
pub limit: Option<u16>,
pub operator: Option<Cow<'a, str>>,
pub packages: Cow<'a, IndexMap<LogId, Option<String>>>,
}
Expand description
Represents a fetch logs request.
Fields§
§log_length: RegistryLen
The checkpoint log length.
limit: Option<u16>
The limit for the number of operator and package records to fetch.
operator: Option<Cow<'a, str>>
The last known operator record fetch token.
packages: Cow<'a, IndexMap<LogId, Option<String>>>
The map of package identifiers to last known fetch token.
Trait Implementations§
Source§impl<'a> Debug for FetchLogsRequest<'a>
impl<'a> Debug for FetchLogsRequest<'a>
Source§impl<'de, 'a> Deserialize<'de> for FetchLogsRequest<'a>
impl<'de, 'a> Deserialize<'de> for FetchLogsRequest<'a>
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<'a> Freeze for FetchLogsRequest<'a>
impl<'a> RefUnwindSafe for FetchLogsRequest<'a>
impl<'a> Send for FetchLogsRequest<'a>
impl<'a> Sync for FetchLogsRequest<'a>
impl<'a> Unpin for FetchLogsRequest<'a>
impl<'a> UnwindSafe for FetchLogsRequest<'a>
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