pub struct NoteAddParams { /* private fields */ }Expand description
Parameters for saving a video note.
Implementations§
Source§impl NoteAddParams
impl NoteAddParams
Sourcepub fn new(
oid: Aid,
title: impl Into<String>,
summary: impl Into<String>,
content: impl Into<String>,
) -> BpiResult<Self>
pub fn new( oid: Aid, title: impl Into<String>, summary: impl Into<String>, content: impl Into<String>, ) -> BpiResult<Self>
Creates note-save parameters for a video AV ID.
Sourcepub fn note_id(self, note_id: impl Into<String>) -> BpiResult<Self>
pub fn note_id(self, note_id: impl Into<String>) -> BpiResult<Self>
Sets the note ID when updating an existing note.
Sets the note jump tags.
Sourcepub fn auto_comment(self, auto_comment: bool) -> Self
pub fn auto_comment(self, auto_comment: bool) -> Self
Controls whether the note should be added to comments.
Trait Implementations§
Source§impl Clone for NoteAddParams
impl Clone for NoteAddParams
Source§fn clone(&self) -> NoteAddParams
fn clone(&self) -> NoteAddParams
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 NoteAddParams
impl Debug for NoteAddParams
impl Eq for NoteAddParams
Source§impl PartialEq for NoteAddParams
impl PartialEq for NoteAddParams
Source§fn eq(&self, other: &NoteAddParams) -> bool
fn eq(&self, other: &NoteAddParams) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for NoteAddParams
Auto Trait Implementations§
impl Freeze for NoteAddParams
impl RefUnwindSafe for NoteAddParams
impl Send for NoteAddParams
impl Sync for NoteAddParams
impl Unpin for NoteAddParams
impl UnsafeUnpin for NoteAddParams
impl UnwindSafe for NoteAddParams
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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.