Struct gitlab::api::users::ExternalProviderBuilder
source · pub struct ExternalProviderBuilder<'a> { /* private fields */ }Expand description
Builder for ExternalProvider.
Implementations§
source§impl<'a> ExternalProviderBuilder<'a>
impl<'a> ExternalProviderBuilder<'a>
sourcepub fn uid<VALUE: Into<Cow<'a, str>>>(&mut self, value: VALUE) -> &mut Self
pub fn uid<VALUE: Into<Cow<'a, str>>>(&mut self, value: VALUE) -> &mut Self
The UID of the user on the service.
sourcepub fn name<VALUE: Into<Cow<'a, str>>>(&mut self, value: VALUE) -> &mut Self
pub fn name<VALUE: Into<Cow<'a, str>>>(&mut self, value: VALUE) -> &mut Self
The name of the service.
sourcepub fn build(
&self
) -> Result<ExternalProvider<'a>, ExternalProviderBuilderError>
pub fn build( &self ) -> Result<ExternalProvider<'a>, ExternalProviderBuilderError>
source§impl<'a> ExternalProviderBuilder<'a>
impl<'a> ExternalProviderBuilder<'a>
sourcepub fn id(&mut self, id: u64) -> &mut ExternalProviderBuilder<'a>
👎Deprecated: use uid instead
pub fn id(&mut self, id: u64) -> &mut ExternalProviderBuilder<'a>
uid insteadDeprecated compatibility method to set UID.
Trait Implementations§
source§impl<'a> Clone for ExternalProviderBuilder<'a>
impl<'a> Clone for ExternalProviderBuilder<'a>
source§fn clone(&self) -> ExternalProviderBuilder<'a>
fn clone(&self) -> ExternalProviderBuilder<'a>
Returns a copy 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> RefUnwindSafe for ExternalProviderBuilder<'a>
impl<'a> Send for ExternalProviderBuilder<'a>
impl<'a> Sync for ExternalProviderBuilder<'a>
impl<'a> Unpin for ExternalProviderBuilder<'a>
impl<'a> UnwindSafe for ExternalProviderBuilder<'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