#[non_exhaustive]pub struct RouteOpenTarget {
pub incarnation: String,
pub kind: RouteOpenTargetKind,
pub spawn: Option<u64>,
pub authority_epoch: Option<u64>,
pub first_party: bool,
pub approved_declarations_digest: Option<String>,
}Expand description
Daemon-attested target facts. Spawn-only keys are ignored for all other kinds, which are always unmarked. Incomplete targets decode as absent in the reply.
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.incarnation: String§kind: RouteOpenTargetKind§spawn: Option<u64>§first_party: bool§approved_declarations_digest: Option<String>Implementations§
Source§impl RouteOpenTarget
impl RouteOpenTarget
Sourcepub fn new(
incarnation: impl Into<String>,
kind: RouteOpenTargetKind,
spawn: Option<u64>,
authority_epoch: Option<u64>,
first_party: bool,
approved_declarations_digest: Option<String>,
) -> Result<Self>
pub fn new( incarnation: impl Into<String>, kind: RouteOpenTargetKind, spawn: Option<u64>, authority_epoch: Option<u64>, first_party: bool, approved_declarations_digest: Option<String>, ) -> Result<Self>
Construct target facts using the same validation and per-kind rules as the wire reader, including the cross-language integer bound.
Trait Implementations§
Source§impl Clone for RouteOpenTarget
impl Clone for RouteOpenTarget
Source§impl Debug for RouteOpenTarget
impl Debug for RouteOpenTarget
Source§impl<'de> Deserialize<'de> for RouteOpenTarget
impl<'de> Deserialize<'de> for RouteOpenTarget
Source§fn deserialize<D: Deserializer<'de>>(decoder: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(decoder: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
impl Eq for RouteOpenTarget
Source§impl PartialEq for RouteOpenTarget
impl PartialEq for RouteOpenTarget
Source§impl Serialize for RouteOpenTarget
impl Serialize for RouteOpenTarget
impl StructuralPartialEq for RouteOpenTarget
Auto Trait Implementations§
impl Forget for RouteOpenTarget
impl Freeze for RouteOpenTarget
impl Move for RouteOpenTarget
impl RefUnwindSafe for RouteOpenTarget
impl Send for RouteOpenTarget
impl Sync for RouteOpenTarget
impl Unpin for RouteOpenTarget
impl UnsafeUnpin for RouteOpenTarget
impl UnwindSafe for RouteOpenTarget
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