pub struct View {
pub kind: String,
pub v: u32,
pub data: Value,
pub fallback: String,
pub owner: Option<ViewRef>,
}Expand description
Something to show, by kind; see the module docs.
Fields§
§kind: String§v: u32Schema version of data for this kind.
data: Value§fallback: StringMarkdown shown by a client that can’t draw this kind.
owner: Option<ViewRef>A live view this is a snapshot of (13.3+): a client that can (cap
crate::sites::CAP_VIEW_SITES) shows the live one and sends its events to the owner.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for View
impl<'de> Deserialize<'de> for View
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 StructuralPartialEq for View
Auto Trait Implementations§
impl Forget for View
impl Freeze for View
impl Move for View
impl RefUnwindSafe for View
impl Send for View
impl Sync for View
impl Unpin for View
impl UnsafeUnpin for View
impl UnwindSafe for View
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