pub struct MalClientId(pub ClientId);
Expand description
If you only need to access public information on MAL that does not require an Oauth access token, you can use the MalClientId as your authorization client
Tuple Fields§
§0: ClientId
Implementations§
Source§impl MalClientId
impl MalClientId
Sourcepub fn new<T: Into<String>>(id: T) -> Self
pub fn new<T: Into<String>>(id: T) -> Self
Create a MalClientId by passing in your ClientId as a string
Useful if you want to control how your program fetches your MAL MAL_CLIENT_ID
Sourcepub fn try_from_env() -> Result<Self, OauthError>
pub fn try_from_env() -> Result<Self, OauthError>
Try to load your MAL ClientId from the environment variable MAL_CLIENT_ID
Trait Implementations§
Auto Trait Implementations§
impl Freeze for MalClientId
impl RefUnwindSafe for MalClientId
impl Send for MalClientId
impl Sync for MalClientId
impl Unpin for MalClientId
impl UnwindSafe for MalClientId
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