pub struct NoteUpsert {
pub source_key: String,
pub site_name: String,
pub text: String,
pub verified: bool,
}Expand description
One source-authored site note to register. source_key identifies the note
within the source system; registration is idempotent per
(source_system, source_key).
site_name is the source’s own station name, which the API resolves against
sites that already exist. A note mints nothing: one naming a station
river-data has never seen is reported unresolved and is re-asserted on a
later cycle, once pairing has created the site.
Fields§
§source_key: String§site_name: String§text: String§verified: boolTrait Implementations§
Source§impl Clone for NoteUpsert
impl Clone for NoteUpsert
Source§fn clone(&self) -> NoteUpsert
fn clone(&self) -> NoteUpsert
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 NoteUpsert
impl Debug for NoteUpsert
Source§impl<'de> Deserialize<'de> for NoteUpsert
impl<'de> Deserialize<'de> for NoteUpsert
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
Auto Trait Implementations§
impl Freeze for NoteUpsert
impl RefUnwindSafe for NoteUpsert
impl Send for NoteUpsert
impl Sync for NoteUpsert
impl Unpin for NoteUpsert
impl UnsafeUnpin for NoteUpsert
impl UnwindSafe for NoteUpsert
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