pub struct TokenDelegatePayload {
pub target_name: String,
pub target_type: String,
pub target_audience: Option<String>,
pub required_permissions: Vec<String>,
pub trust_domain: Option<String>,
pub auth_enforced_by: String,
pub route_attenuation: Option<AttenuationConfig>,
pub bearer_token: Option<String>,
}Expand description
token.delegate mirrors DelegationPayload. The worker knows the hook as
token_delegate.
bearer_token is SecretStr | None on the Python side and redacts on
serialization, so this field carries a placeholder. The plaintext travels
via the credential object.
Debug is hand-written — see the module docs.
Fields§
§target_name: String§target_type: String§target_audience: Option<String>§required_permissions: Vec<String>§trust_domain: Option<String>§auth_enforced_by: String§route_attenuation: Option<AttenuationConfig>§bearer_token: Option<String>Redacted on the wire; the plaintext comes from the credential object.
Trait Implementations§
Source§impl Clone for TokenDelegatePayload
impl Clone for TokenDelegatePayload
Source§impl Debug for TokenDelegatePayload
impl Debug for TokenDelegatePayload
Source§impl Default for TokenDelegatePayload
impl Default for TokenDelegatePayload
Source§impl<'de> Deserialize<'de> for TokenDelegatePayload
impl<'de> Deserialize<'de> for TokenDelegatePayload
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
Source§impl PluginPayload for TokenDelegatePayload
impl PluginPayload for TokenDelegatePayload
Source§fn clone_boxed(&self) -> Box<dyn PluginPayload>
fn clone_boxed(&self) -> Box<dyn PluginPayload>
Clone this payload into a new
Box<dyn PluginPayload>. Read moreSource§fn as_any_mut(&mut self) -> &mut dyn Any
fn as_any_mut(&mut self) -> &mut dyn Any
Downcast to a concrete type via
&mut dyn Any.Auto Trait Implementations§
impl Freeze for TokenDelegatePayload
impl RefUnwindSafe for TokenDelegatePayload
impl Send for TokenDelegatePayload
impl Sync for TokenDelegatePayload
impl Unpin for TokenDelegatePayload
impl UnsafeUnpin for TokenDelegatePayload
impl UnwindSafe for TokenDelegatePayload
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