pub struct CustomerAppContext {
pub app_id: String,
pub tenant_id: Option<String>,
pub site_id: Option<String>,
pub brand_id: Option<String>,
pub locale: Option<String>,
}Fields§
§app_id: String§tenant_id: Option<String>§site_id: Option<String>§brand_id: Option<String>§locale: Option<String>Implementations§
Source§impl CustomerAppContext
impl CustomerAppContext
pub fn new(app_id: impl Into<String>) -> Result<Self, WasmModelError>
pub fn with_tenant_id( self, tenant_id: impl Into<String>, ) -> Result<Self, WasmModelError>
pub fn with_site_id( self, site_id: impl Into<String>, ) -> Result<Self, WasmModelError>
pub fn with_brand_id( self, brand_id: impl Into<String>, ) -> Result<Self, WasmModelError>
pub fn with_locale( self, locale: impl Into<String>, ) -> Result<Self, WasmModelError>
Trait Implementations§
Source§impl Clone for CustomerAppContext
impl Clone for CustomerAppContext
Source§fn clone(&self) -> CustomerAppContext
fn clone(&self) -> CustomerAppContext
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 moreSource§impl Debug for CustomerAppContext
impl Debug for CustomerAppContext
Source§impl PartialEq for CustomerAppContext
impl PartialEq for CustomerAppContext
impl Eq for CustomerAppContext
impl StructuralPartialEq for CustomerAppContext
Auto Trait Implementations§
impl Freeze for CustomerAppContext
impl RefUnwindSafe for CustomerAppContext
impl Send for CustomerAppContext
impl Sync for CustomerAppContext
impl Unpin for CustomerAppContext
impl UnsafeUnpin for CustomerAppContext
impl UnwindSafe for CustomerAppContext
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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