pub struct CreateOrUpdateProjectWikiPageBuilder<'a> { /* private fields */ }Expand description
Builder for CreateOrUpdateProjectWikiPage.
Implementations§
Source§impl<'a> CreateOrUpdateProjectWikiPageBuilder<'a>
impl<'a> CreateOrUpdateProjectWikiPageBuilder<'a>
Sourcepub fn project_id_or_name<VALUE: Into<Cow<'a, str>>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn project_id_or_name<VALUE: Into<Cow<'a, str>>>( &mut self, value: VALUE, ) -> &mut Self
the project id or name as it appears in the URL
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 as it appears in the URL
Sourcepub fn version(&mut self, value: u64) -> &mut Self
pub fn version(&mut self, value: u64) -> &mut Self
the version to update, if the version is not this a 409 Conflict is returned
Sourcepub fn text<VALUE: Into<Cow<'a, str>>>(&mut self, value: VALUE) -> &mut Self
pub fn text<VALUE: Into<Cow<'a, str>>>(&mut self, value: VALUE) -> &mut Self
the body text of the page
Sourcepub fn comments<VALUE: Into<Cow<'a, str>>>(&mut self, value: VALUE) -> &mut Self
pub fn comments<VALUE: Into<Cow<'a, str>>>(&mut self, value: VALUE) -> &mut Self
the comment for the update history
Sourcepub fn build(
&self,
) -> Result<CreateOrUpdateProjectWikiPage<'a>, CreateOrUpdateProjectWikiPageBuilderError>
pub fn build( &self, ) -> Result<CreateOrUpdateProjectWikiPage<'a>, CreateOrUpdateProjectWikiPageBuilderError>
Trait Implementations§
Source§impl<'a> Clone for CreateOrUpdateProjectWikiPageBuilder<'a>
impl<'a> Clone for CreateOrUpdateProjectWikiPageBuilder<'a>
Source§fn clone(&self) -> CreateOrUpdateProjectWikiPageBuilder<'a>
fn clone(&self) -> CreateOrUpdateProjectWikiPageBuilder<'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 CreateOrUpdateProjectWikiPageBuilder<'a>
impl<'a> RefUnwindSafe for CreateOrUpdateProjectWikiPageBuilder<'a>
impl<'a> Send for CreateOrUpdateProjectWikiPageBuilder<'a>
impl<'a> Sync for CreateOrUpdateProjectWikiPageBuilder<'a>
impl<'a> Unpin for CreateOrUpdateProjectWikiPageBuilder<'a>
impl<'a> UnwindSafe for CreateOrUpdateProjectWikiPageBuilder<'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