pub struct SentMessage {
pub project_id: ProjectId,
pub recipients: Vec<ClientState>,
pub time: SystemTime,
pub source: ClientState,
pub content: Value,
}
Fields§
§project_id: ProjectId
§recipients: Vec<ClientState>
§time: SystemTime
§source: ClientState
§content: Value
Trait Implementations§
Source§impl Clone for SentMessage
impl Clone for SentMessage
Source§fn clone(&self) -> SentMessage
fn clone(&self) -> SentMessage
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 SentMessage
impl Debug for SentMessage
Source§impl<'de> Deserialize<'de> for SentMessage
impl<'de> Deserialize<'de> for SentMessage
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<SentMessage, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<SentMessage, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for SentMessage
impl Serialize for SentMessage
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Source§impl TS for SentMessage
impl TS for SentMessage
const EXPORT_TO: Option<&'static str>
Source§fn decl() -> String
fn decl() -> String
Declaration of this type, e.g.
interface User { user_id: number, ... }
.
This function will panic if the type has no declaration.Source§fn inline() -> String
fn inline() -> String
Formats this types definition in TypeScript, e.g
{ user_id: number }
.
This function will panic if the type cannot be inlined.Source§fn inline_flattened() -> String
fn inline_flattened() -> String
Flatten an type declaration.
This function will panic if the type cannot be flattened.
This function will panic if the type cannot be flattened.
Source§fn dependencies() -> Vec<Dependency>where
SentMessage: 'static,
fn dependencies() -> Vec<Dependency>where
SentMessage: 'static,
Information about types this type depends on.
This is used for resolving imports when exporting to a file.
Source§fn transparent() -> bool
fn transparent() -> bool
true
if this is a transparent type, e.g tuples or a list.This is used for resolving imports when using the
export!
macro.Source§fn name_with_type_args(args: Vec<String>) -> String
fn name_with_type_args(args: Vec<String>) -> String
Name of this type in TypeScript, with type arguments.
Source§fn export() -> Result<(), ExportError>where
Self: 'static,
fn export() -> Result<(), ExportError>where
Self: 'static,
Manually export this type to a file.
The output file can be specified by annotating the type with
#[ts(export_to = ".."]
.
By default, the filename will be derived from the types name. Read moreSource§fn export_to(path: impl AsRef<Path>) -> Result<(), ExportError>where
Self: 'static,
fn export_to(path: impl AsRef<Path>) -> Result<(), ExportError>where
Self: 'static,
Manually export this type to a file with a file with the specified path. This
function will ignore the
#[ts(export_to = "..)]
attribute.Source§fn export_to_string() -> Result<String, ExportError>where
Self: 'static,
fn export_to_string() -> Result<String, ExportError>where
Self: 'static,
Manually generate bindings for this type, returning a
This function does not format the output, even if the
String
.This function does not format the output, even if the
format
feature is enabled.Auto Trait Implementations§
impl Freeze for SentMessage
impl RefUnwindSafe for SentMessage
impl Send for SentMessage
impl Sync for SentMessage
impl Unpin for SentMessage
impl UnwindSafe for SentMessage
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