pub struct Profiles { /* private fields */ }Expand description
Thin wrapper over the Circles profile service.
Implementations§
Source§impl Profiles
impl Profiles
Sourcepub fn new(profile_service_url: impl AsRef<str>) -> Result<Self, ProfilesError>
pub fn new(profile_service_url: impl AsRef<str>) -> Result<Self, ProfilesError>
Build a client using the default Reqwest client.
Sourcepub fn with_client(
profile_service_url: impl AsRef<str>,
client: Client,
) -> Result<Self, ProfilesError>
pub fn with_client( profile_service_url: impl AsRef<str>, client: Client, ) -> Result<Self, ProfilesError>
Build a client using a provided Reqwest client (useful for custom middleware or mocks).
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Profiles
impl !RefUnwindSafe for Profiles
impl Send for Profiles
impl Sync for Profiles
impl Unpin for Profiles
impl !UnwindSafe for Profiles
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<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