pub struct HistoryResource<'a> { /* private fields */ }Expand description
client.history()
Implementations§
Source§impl<'a> HistoryResource<'a>
impl<'a> HistoryResource<'a>
Sourcepub fn list(&self, query: &GetHistoryQuery) -> Result<Vec<HistoryEntry>>
pub fn list(&self, query: &GetHistoryQuery) -> Result<Vec<HistoryEntry>>
Get History
GET /history
Get history entries with links to domain objects.
§Example
let query = GetHistoryQuery {
domain_types: Some(vec!["beispiel".into()]),
domain_identifiers: Some(vec!["beispiel".into()]),
..Default::default()
};
for history in client.history().list(&query)? {
println!("{}", history.id);
}Sourcepub fn list_iter(&self, query: &GetHistoryQuery) -> Items<HistoryEntry> ⓘ
pub fn list_iter(&self, query: &GetHistoryQuery) -> Items<HistoryEntry> ⓘ
Get History
Like Self::list, but lazy: each page is fetched only when the iteration reaches it.
Breaking off early saves the remaining requests.
Trait Implementations§
Source§impl<'a> Clone for HistoryResource<'a>
impl<'a> Clone for HistoryResource<'a>
impl<'a> Copy for HistoryResource<'a>
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for HistoryResource<'a>
impl<'a> !UnwindSafe for HistoryResource<'a>
impl<'a> Freeze for HistoryResource<'a>
impl<'a> Send for HistoryResource<'a>
impl<'a> Sync for HistoryResource<'a>
impl<'a> Unpin for HistoryResource<'a>
impl<'a> UnsafeUnpin for HistoryResource<'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