pub struct UpdateNewsBuilder<'a> { /* private fields */ }Expand description
Builder for UpdateNews.
Implementations§
Source§impl<'a> UpdateNewsBuilder<'a>
impl<'a> UpdateNewsBuilder<'a>
Sourcepub fn title<VALUE: Into<Cow<'a, str>>>(&mut self, value: VALUE) -> &mut Self
pub fn title<VALUE: Into<Cow<'a, str>>>(&mut self, value: VALUE) -> &mut Self
the title of the news
Sourcepub fn summary<VALUE: Into<Cow<'a, str>>>(&mut self, value: VALUE) -> &mut Self
pub fn summary<VALUE: Into<Cow<'a, str>>>(&mut self, value: VALUE) -> &mut Self
the summary of the news
Sourcepub fn description<VALUE: Into<Cow<'a, str>>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn description<VALUE: Into<Cow<'a, str>>>( &mut self, value: VALUE, ) -> &mut Self
the description of the news (body)
Sourcepub fn build(&self) -> Result<UpdateNews<'a>, UpdateNewsBuilderError>
pub fn build(&self) -> Result<UpdateNews<'a>, UpdateNewsBuilderError>
Trait Implementations§
Source§impl<'a> Clone for UpdateNewsBuilder<'a>
impl<'a> Clone for UpdateNewsBuilder<'a>
Source§fn clone(&self) -> UpdateNewsBuilder<'a>
fn clone(&self) -> UpdateNewsBuilder<'a>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl<'a> Freeze for UpdateNewsBuilder<'a>
impl<'a> RefUnwindSafe for UpdateNewsBuilder<'a>
impl<'a> Send for UpdateNewsBuilder<'a>
impl<'a> Sync for UpdateNewsBuilder<'a>
impl<'a> Unpin for UpdateNewsBuilder<'a>
impl<'a> UnwindSafe for UpdateNewsBuilder<'a>
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