pub struct IntegrationAccountBuilder { /* private fields */ }Expand description
Builder for IntegrationAccount entity
Provides a fluent API for constructing IntegrationAccount instances. System fields (id, metadata, timestamps) are auto-initialized.
Implementations§
Source§impl IntegrationAccountBuilder
impl IntegrationAccountBuilder
Sourcepub fn provider(self, value: OAuthProvider) -> Self
pub fn provider(self, value: OAuthProvider) -> Self
Set the provider field (required)
Sourcepub fn account_ref(self, value: String) -> Self
pub fn account_ref(self, value: String) -> Self
Set the account_ref field (required)
Sourcepub fn status(self, value: IntegrationAccountStatus) -> Self
pub fn status(self, value: IntegrationAccountStatus) -> Self
Set the status field (default: IntegrationAccountStatus::default())
Sourcepub fn pkce_verifier(self, value: String) -> Self
pub fn pkce_verifier(self, value: String) -> Self
Set the pkce_verifier field (optional)
Sourcepub fn expires_at(self, value: DateTime<Utc>) -> Self
pub fn expires_at(self, value: DateTime<Utc>) -> Self
Set the expires_at field (optional)
Sourcepub fn last_refreshed_at(self, value: DateTime<Utc>) -> Self
pub fn last_refreshed_at(self, value: DateTime<Utc>) -> Self
Set the last_refreshed_at field (optional)
Sourcepub fn build(self) -> Result<IntegrationAccount, String>
pub fn build(self) -> Result<IntegrationAccount, String>
Build the IntegrationAccount entity
Returns Err if any required field without a default is missing.
Trait Implementations§
Source§impl Clone for IntegrationAccountBuilder
impl Clone for IntegrationAccountBuilder
Source§impl Debug for IntegrationAccountBuilder
impl Debug for IntegrationAccountBuilder
Auto Trait Implementations§
impl Freeze for IntegrationAccountBuilder
impl RefUnwindSafe for IntegrationAccountBuilder
impl Send for IntegrationAccountBuilder
impl Sync for IntegrationAccountBuilder
impl Unpin for IntegrationAccountBuilder
impl UnsafeUnpin for IntegrationAccountBuilder
impl UnwindSafe for IntegrationAccountBuilder
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more