pub struct NeuralMessage {
pub message_id: String,
pub sender_id: String,
pub receiver_id: String,
pub message_type: MessageType,
pub neurotransmitter: NeurotransmitterType,
pub payload: Vec<u8>,
pub timestamp: u64,
pub ttl: u64,
pub signature: Vec<u8>,
pub urgency: f64,
pub priority: u8,
pub routing: RoutingInfo,
}
Expand description
Neural message for organism communication
Fieldsยง
ยงmessage_id: String
Unique message identifier
sender_id: String
ID of sending organism
receiver_id: String
ID of receiving organism
message_type: MessageType
Type of neural message
neurotransmitter: NeurotransmitterType
Neurotransmitter used for transmission
payload: Vec<u8>
Message payload
timestamp: u64
Message creation timestamp (nanoseconds)
ttl: u64
Time to live (seconds)
signature: Vec<u8>
Cryptographic signature
urgency: f64
Message urgency level (0.0-1.0)
priority: u8
Message priority (0-255)
routing: RoutingInfo
Routing information
Trait Implementationsยง
Sourceยงimpl Clone for NeuralMessage
impl Clone for NeuralMessage
Sourceยงfn clone(&self) -> NeuralMessage
fn clone(&self) -> NeuralMessage
Returns a duplicate of the value. Read more
1.0.0 ยท 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 NeuralMessage
impl Debug for NeuralMessage
Sourceยงimpl<'de> Deserialize<'de> for NeuralMessage
impl<'de> Deserialize<'de> for NeuralMessage
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>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementationsยง
impl Freeze for NeuralMessage
impl RefUnwindSafe for NeuralMessage
impl Send for NeuralMessage
impl Sync for NeuralMessage
impl Unpin for NeuralMessage
impl UnwindSafe for NeuralMessage
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