pub struct Packet {Show 16 fields
pub packet_version: Packet_PacketVersion,
pub packet_id: String,
pub source: ActorId,
pub destination: ActorId,
pub priority: Packet_Priority,
pub emergency: Option<bool>,
pub created_at: Timestamp,
pub expires_at: Option<Timestamp>,
pub ttl_hops: Option<i64>,
pub route_constraints: Option<Vec<String>>,
pub encoding: Option<Packet_Encoding>,
pub compression: Option<Packet_Compression>,
pub payload: String,
pub session_ref: Option<String>,
pub fragment: Option<PacketFragment>,
pub signature: SignatureEnvelope,
}Expand description
Standalone signed/encrypted object that may be delivered offline, relayed, stored, or transferred and verified later. Implements TF-0011 packet mode: packet priority, expiration, route constraints, fragmentation, emergency packets.
Fields§
§packet_version: Packet_PacketVersionVersion of the packet schema itself.
packet_id: StringStable packet identifier; used for de-duplication, fragmentation reassembly, and audit lookup.
source: ActorIdOriginating actor.
destination: ActorIdFinal destination actor.
priority: Packet_PriorityPacket priority class. P0 is reserved for emergency / break-glass and is policy-controlled.
emergency: Option<bool>When true, the packet is invoking break-glass emergency authority. Must be scoped, logged, and reviewable per TF-0011.
created_at: Timestamp§expires_at: Option<Timestamp>§ttl_hops: Option<i64>Maximum number of relay hops the packet may traverse.
route_constraints: Option<Vec<String>>Optional ordered/unordered hints (“only-trusted-relays”, “avoid:internet”, …).
encoding: Option<Packet_Encoding>Wire encoding of the payload bytes.
compression: Option<Packet_Compression>Optional payload compression.
payload: StringBase64-encoded canonical payload bytes (the body the source signed).
session_ref: Option<String>Optional session identifier this packet relates to.
fragment: Option<PacketFragment>Set when the packet is itself a fragment of a larger packet.
signature: SignatureEnvelopeTrait Implementations§
Source§impl<'de> Deserialize<'de> for Packet
impl<'de> Deserialize<'de> for Packet
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>,
impl Eq for Packet
impl StructuralPartialEq for Packet
Auto Trait Implementations§
impl Freeze for Packet
impl RefUnwindSafe for Packet
impl Send for Packet
impl Sync for Packet
impl Unpin for Packet
impl UnsafeUnpin for Packet
impl UnwindSafe for Packet
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.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>
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>
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