pub struct OauthConsentRequestContent {
pub consent_link: String,
pub id: Option<String>,
}Expand description
A request for the user to complete an OAuth consent flow (human-in-the-loop).
Fields§
§consent_link: String§id: Option<String>The provider’s id for the output item this request came from, when it named one. A consent request is a user-input request, so a workflow registers it under this id and matches the user’s answer back to it; without the id the answer has nothing to correlate against.
Implementations§
Source§impl OauthConsentRequestContent
impl OauthConsentRequestContent
Sourcepub fn new(consent_link: impl Into<String>) -> OauthConsentRequestContent
pub fn new(consent_link: impl Into<String>) -> OauthConsentRequestContent
A consent request for consent_link, with no provider item id.
Sourcepub fn with_id(self, id: impl Into<String>) -> OauthConsentRequestContent
pub fn with_id(self, id: impl Into<String>) -> OauthConsentRequestContent
Set the provider’s id for the output item this request came from.
Trait Implementations§
Source§impl Clone for OauthConsentRequestContent
impl Clone for OauthConsentRequestContent
Source§fn clone(&self) -> OauthConsentRequestContent
fn clone(&self) -> OauthConsentRequestContent
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 OauthConsentRequestContent
impl Debug for OauthConsentRequestContent
Source§impl Default for OauthConsentRequestContent
impl Default for OauthConsentRequestContent
Source§fn default() -> OauthConsentRequestContent
fn default() -> OauthConsentRequestContent
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for OauthConsentRequestContent
impl<'de> Deserialize<'de> for OauthConsentRequestContent
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<OauthConsentRequestContent, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<OauthConsentRequestContent, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for OauthConsentRequestContent
impl Serialize for OauthConsentRequestContent
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for OauthConsentRequestContent
Auto Trait Implementations§
impl Freeze for OauthConsentRequestContent
impl RefUnwindSafe for OauthConsentRequestContent
impl Send for OauthConsentRequestContent
impl Sync for OauthConsentRequestContent
impl Unpin for OauthConsentRequestContent
impl UnsafeUnpin for OauthConsentRequestContent
impl UnwindSafe for OauthConsentRequestContent
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