pub struct Present {
pub id: String,
pub session: String,
pub principal: String,
pub name: String,
pub agent: bool,
pub colour: String,
pub client: Option<u64>,
pub awareness: Option<String>,
pub at: i64,
}Expand description
Someone on a note: a connection open on it, or a writer while it writes.
Fields§
§id: StringThe note.
session: StringThe connection’s own id (the page’s, as its watch said it).
principal: String§name: StringThe name they signed in as.
agent: boolAn agent’s key, not a person.
colour: StringTheir colour, for their caret and their name (#rrggbb).
client: Option<u64>Their Yjs client id, when their page said it.
awareness: Option<String>Their caret and selection: a Yjs awareness update (base64), when their page said one.
at: i64Their last word, in unix milliseconds.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Present
impl<'de> Deserialize<'de> for Present
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
impl Eq for Present
Source§impl JsonSchema for Present
impl JsonSchema for Present
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreimpl StructuralPartialEq for Present
Auto Trait Implementations§
impl Forget for Present
impl Freeze for Present
impl Move for Present
impl RefUnwindSafe for Present
impl Send for Present
impl Sync for Present
impl Unpin for Present
impl UnsafeUnpin for Present
impl UnwindSafe for Present
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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§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.