pub struct BodyWithClientCredentialsGrant<SCOPE>where
SCOPE: Scope,{
pub scope: Option<ScopeParameter<SCOPE>>,
pub client_password: Option<ClientPassword>,
/* private fields */
}
Fields§
§scope: Option<ScopeParameter<SCOPE>>
§client_password: Option<ClientPassword>
Implementations§
Source§impl<SCOPE> BodyWithClientCredentialsGrant<SCOPE>where
SCOPE: Scope,
impl<SCOPE> BodyWithClientCredentialsGrant<SCOPE>where
SCOPE: Scope,
pub fn new(scope: Option<ScopeParameter<SCOPE>>) -> Self
pub fn new_with_client_password( scope: Option<ScopeParameter<SCOPE>>, client_password: ClientPassword, ) -> Self
pub fn set_extra(&mut self, extra: Map<String, Value>)
pub fn extra(&self) -> Option<&Map<String, Value>>
pub fn try_from_t_with_string( body: &BodyWithClientCredentialsGrant<String>, ) -> Result<Self, ScopeFromStrError>
Trait Implementations§
Source§impl<SCOPE> Clone for BodyWithClientCredentialsGrant<SCOPE>
impl<SCOPE> Clone for BodyWithClientCredentialsGrant<SCOPE>
Source§fn clone(&self) -> BodyWithClientCredentialsGrant<SCOPE>
fn clone(&self) -> BodyWithClientCredentialsGrant<SCOPE>
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl<SCOPE> Debug for BodyWithClientCredentialsGrant<SCOPE>
impl<SCOPE> Debug for BodyWithClientCredentialsGrant<SCOPE>
Source§impl<'de, SCOPE> Deserialize<'de> for BodyWithClientCredentialsGrant<SCOPE>where
SCOPE: Scope + Deserialize<'de>,
impl<'de, SCOPE> Deserialize<'de> for BodyWithClientCredentialsGrant<SCOPE>where
SCOPE: Scope + Deserialize<'de>,
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl<SCOPE> Freeze for BodyWithClientCredentialsGrant<SCOPE>
impl<SCOPE> RefUnwindSafe for BodyWithClientCredentialsGrant<SCOPE>where
SCOPE: RefUnwindSafe,
impl<SCOPE> Send for BodyWithClientCredentialsGrant<SCOPE>where
SCOPE: Send,
impl<SCOPE> Sync for BodyWithClientCredentialsGrant<SCOPE>where
SCOPE: Sync,
impl<SCOPE> Unpin for BodyWithClientCredentialsGrant<SCOPE>where
SCOPE: Unpin,
impl<SCOPE> UnwindSafe for BodyWithClientCredentialsGrant<SCOPE>where
SCOPE: UnwindSafe,
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