pub struct ImportedMessage {Show 14 fields
pub id: String,
pub content: String,
pub maker: String,
pub created_unix: u64,
pub lamport: Option<u64>,
pub role: Option<String>,
pub content_hash: Option<u64>,
pub author_name: Option<String>,
pub reply_to_fragment: Option<String>,
pub source: Option<String>,
pub sub_agent_of: Option<String>,
pub agent_did: Option<String>,
pub model_id: Option<String>,
pub agent_backend: Option<String>,
}Expand description
A message parsed back from a Solid long-chat day file. Fields absent in a pure-Solid file (no qc:)
are defaulted honestly (role = User, Lamport derived from order by the caller if needed).
Fields§
§id: String§content: String§maker: String§created_unix: u64§lamport: Option<u64>§role: Option<String>§content_hash: Option<u64>§reply_to_fragment: Option<String>§source: Option<String>§sub_agent_of: Option<String>§agent_did: Option<String>§model_id: Option<String>§agent_backend: Option<String>Implementations§
Source§impl ImportedMessage
impl ImportedMessage
Sourcepub fn to_chat_message(&self, fallback_lamport: u64) -> ChatMessage
pub fn to_chat_message(&self, fallback_lamport: u64) -> ChatMessage
Reconstruct a native ChatMessage. fallback_lamport is used only when the file carried no
qc:lamport (a message that originated in a non-Qualia Solid client).
Trait Implementations§
Source§impl Clone for ImportedMessage
impl Clone for ImportedMessage
Source§fn clone(&self) -> ImportedMessage
fn clone(&self) -> ImportedMessage
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 ImportedMessage
impl Debug for ImportedMessage
Source§impl Default for ImportedMessage
impl Default for ImportedMessage
Source§fn default() -> ImportedMessage
fn default() -> ImportedMessage
Returns the “default value” for a type. Read more
Source§impl PartialEq for ImportedMessage
impl PartialEq for ImportedMessage
Source§fn eq(&self, other: &ImportedMessage) -> bool
fn eq(&self, other: &ImportedMessage) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for ImportedMessage
impl StructuralPartialEq for ImportedMessage
Auto Trait Implementations§
impl Freeze for ImportedMessage
impl RefUnwindSafe for ImportedMessage
impl Send for ImportedMessage
impl Sync for ImportedMessage
impl Unpin for ImportedMessage
impl UnsafeUnpin for ImportedMessage
impl UnwindSafe for ImportedMessage
Blanket Implementations§
§impl<S, A> Aggregate<Result<S, Error>> for Awhere
A: Aggregate<S>,
impl<S, A> Aggregate<Result<S, Error>> for Awhere
A: Aggregate<S>,
Aggregate shares in an MPC protocol.
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§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
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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>
Converts
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>
Converts
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§impl<T> NoneValue for Twhere
T: Default,
impl<T> NoneValue for Twhere
T: Default,
type NoneType = T
§fn null_value() -> T
fn null_value() -> T
The none-equivalent value.