pub struct NotesShow {
pub me: SessionUri,
pub thread: ThreadName,
pub user: Option<String>,
pub history: bool,
}Expand description
POST /v1/notes: the query for the notes of a lead
(01M59258NTXPMWV18TKRKWNTYN). The user of the lead can read them,
and the owner of the riff. Another member cannot.
use riff_core::wire::{Call, NotesShow};
let show: NotesShow = serde_json::from_str(
r#"{"me":"riff://mike@pangolin/como-technologies/riff?session=a1","thread":"como-technologies/riff"}"#,
).unwrap();
assert_eq!(show.user, None);
assert!(!show.history);
assert_eq!(NotesShow::PATH, "/v1/notes");Fields§
§me: SessionUri§thread: ThreadName§user: Option<String>The user of the lead. Leave it out to read the notes of the caller. Only the owner can name another user.
history: boolTrue asks also for the old texts.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for NotesShow
impl<'de> Deserialize<'de> for NotesShow
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 JsonSchema for NotesShow
impl JsonSchema for NotesShow
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 moreAuto Trait Implementations§
impl Freeze for NotesShow
impl RefUnwindSafe for NotesShow
impl Send for NotesShow
impl Sync for NotesShow
impl Unpin for NotesShow
impl UnsafeUnpin for NotesShow
impl UnwindSafe for NotesShow
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