pub struct RpcAuthScope {
pub auth_secret: String,
pub allowed_paths: Vec<String>,
}Expand description
RPC authentication scope
Fields§
§auth_secret: StringAuthentication secret (format: “type:value”, e.g., “bearer:token” or “basic:user:pass”)
allowed_paths: Vec<String>Allowed API paths for this scope
Trait Implementations§
Source§impl Clone for RpcAuthScope
impl Clone for RpcAuthScope
Source§fn clone(&self) -> RpcAuthScope
fn clone(&self) -> RpcAuthScope
Returns a duplicate of the value. Read more
1.0.0 · 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 RpcAuthScope
impl Debug for RpcAuthScope
Source§impl<'de> Deserialize<'de> for RpcAuthScope
impl<'de> Deserialize<'de> for RpcAuthScope
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 Freeze for RpcAuthScope
impl RefUnwindSafe for RpcAuthScope
impl Send for RpcAuthScope
impl Sync for RpcAuthScope
impl Unpin for RpcAuthScope
impl UnwindSafe for RpcAuthScope
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