pub struct Report<'a> { /* private fields */ }
Expand description
The video.report API request.
Implementations
sourceimpl<'a> Report<'a>
impl<'a> Report<'a>
pub fn new() -> Self
pub fn owner_id(&mut self, value: OwnerId) -> &mut Self
pub fn video_id(&mut self, value: Id) -> &mut Self
pub fn reason(&mut self, value: ReportReason) -> &mut Self
pub fn comment(&mut self, value: &'a str) -> &mut Self
pub fn search_query(&mut self, value: &'a str) -> &mut Self
Trait Implementations
sourceimpl<'a> Request for Report<'a>
impl<'a> Request for Report<'a>
type Response = u8
fn method_name() -> &'static str
fn permissions() -> Permissions
fn to_query_string(&self) -> String
fn to_url(&self) -> Url
impl<'a> Copy for Report<'a>
impl<'a> Eq for Report<'a>
impl<'a> StructuralEq for Report<'a>
impl<'a> StructuralPartialEq for Report<'a>
Auto Trait Implementations
impl<'a> RefUnwindSafe for Report<'a>
impl<'a> Send for Report<'a>
impl<'a> Sync for Report<'a>
impl<'a> Unpin for Report<'a>
impl<'a> UnwindSafe for Report<'a>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
sourcefn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.