made_client/
ceremony_search_page.rs1use made_proto::v1::CeremonyInstanceState;
2
3#[derive(Clone, Debug, PartialEq)]
5pub struct CeremonySearchPage {
6 instances: Vec<CeremonyInstanceState>,
7 next_cursor: Option<String>,
8}
9
10impl CeremonySearchPage {
11 pub(crate) fn new(instances: Vec<CeremonyInstanceState>, next_cursor: Option<String>) -> Self {
12 Self {
13 instances,
14 next_cursor,
15 }
16 }
17
18 #[must_use]
19 pub fn instances(&self) -> &[CeremonyInstanceState] {
20 &self.instances
21 }
22
23 #[must_use]
24 pub fn next_cursor(&self) -> Option<&str> {
25 self.next_cursor.as_deref()
26 }
27}