#[non_exhaustive]pub struct EnumerateTrustsPage {
pub trusts: Vec<TrustedDomainInfo>,
pub next_context: u32,
}Expand description
A batched enumeration response: the trust rows + the updated context.
Client code either calls once with a large prefered_maximum_length (rarely > a handful of
trusts in real domains, ~256 entries max for practical purposes), or loops feeding
next_context back until it comes back == 0 or the returned rows are empty.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.trusts: Vec<TrustedDomainInfo>§next_context: u32If non-zero, the client should call again with this value to fetch the next page.
Trait Implementations§
Source§impl Clone for EnumerateTrustsPage
impl Clone for EnumerateTrustsPage
Source§fn clone(&self) -> EnumerateTrustsPage
fn clone(&self) -> EnumerateTrustsPage
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for EnumerateTrustsPage
impl Debug for EnumerateTrustsPage
Source§impl Default for EnumerateTrustsPage
impl Default for EnumerateTrustsPage
Source§fn default() -> EnumerateTrustsPage
fn default() -> EnumerateTrustsPage
Returns the “default value” for a type. Read more
impl Eq for EnumerateTrustsPage
Source§impl PartialEq for EnumerateTrustsPage
impl PartialEq for EnumerateTrustsPage
impl StructuralPartialEq for EnumerateTrustsPage
Auto Trait Implementations§
impl Freeze for EnumerateTrustsPage
impl RefUnwindSafe for EnumerateTrustsPage
impl Send for EnumerateTrustsPage
impl Sync for EnumerateTrustsPage
impl Unpin for EnumerateTrustsPage
impl UnsafeUnpin for EnumerateTrustsPage
impl UnwindSafe for EnumerateTrustsPage
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