pub struct SetNotes {
pub me: SessionUri,
pub thread: ThreadName,
pub text: String,
}Expand description
POST /v1/notes/set: the lead of a user writes the notes of its
repository thread (01M59258K3TYR09HC4AWHWZPEX). The text replaces
the old text, and the old text stays in the history. Only a session
of the user that is not a worker, and the person of the user, can
write them (01M59258NTXPMWV18TKRKWNTYN). The text has at most
NOTES_MAX bytes, and it looks like no
token (01M59258RJ3CG498Z8AVQ5TV5Q).
use riff_core::wire::{Call, SetNotes};
let set = SetNotes {
me: "riff://mike@pangolin/como-technologies/riff?session=a1".parse()?,
thread: "como-technologies/riff".parse()?,
text: "Prefer thelio for builds.".into(),
};
assert_eq!(SetNotes::PATH, "/v1/notes/set");
assert!(serde_json::to_string(&set).unwrap().contains(r#""text":"Prefer thelio for builds.""#));Fields§
§me: SessionUri§thread: ThreadNameThe repository thread of the notes.
text: StringTrait Implementations§
Source§impl<'de> Deserialize<'de> for SetNotes
impl<'de> Deserialize<'de> for SetNotes
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 SetNotes
impl JsonSchema for SetNotes
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 SetNotes
impl RefUnwindSafe for SetNotes
impl Send for SetNotes
impl Sync for SetNotes
impl Unpin for SetNotes
impl UnsafeUnpin for SetNotes
impl UnwindSafe for SetNotes
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