pub struct Communication {
pub role: Cow<'static, str>,
pub content: Cow<'static, str>,
}Expand description
Represents a communication between agents.
Fieldsยง
ยงrole: Cow<'static, str>The role of the communication.
content: Cow<'static, str>The content of the communication.
Trait Implementationsยง
Sourceยงimpl Clone for Communication
impl Clone for Communication
Sourceยงfn clone(&self) -> Communication
fn clone(&self) -> Communication
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 Communication
impl Debug for Communication
Sourceยงimpl Default for Communication
impl Default for Communication
Sourceยงfn default() -> Communication
fn default() -> Communication
Returns the โdefault valueโ for a type. Read more
Sourceยงimpl<'de> Deserialize<'de> for Communication
impl<'de> Deserialize<'de> for Communication
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
Sourceยงimpl Hash for Communication
impl Hash for Communication
Sourceยงimpl PartialEq for Communication
impl PartialEq for Communication
Sourceยงimpl Serialize for Communication
impl Serialize for Communication
impl Eq for Communication
impl StructuralPartialEq for Communication
Auto Trait Implementationsยง
impl Freeze for Communication
impl RefUnwindSafe for Communication
impl Send for Communication
impl Sync for Communication
impl Unpin for Communication
impl UnwindSafe for Communication
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
Sourceยงimpl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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
Compare self to
key and return true if they are equal.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
Compare self to
key and return true if they are equal.Sourceยงimpl<T> Instrument for T
impl<T> Instrument for T
Sourceยงfn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Sourceยงfn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Sourceยงimpl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Sourceยงfn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request