pub struct NodeClientInfo {
pub client_id: String,
pub permissions: Vec<String>,
pub rate_limit_rps: Option<u32>,
}Expand description
Information about a validated client.
Fields§
§client_id: String§permissions: Vec<String>§rate_limit_rps: Option<u32>Trait Implementations§
Source§impl FromNapiValue for NodeClientInfo
impl FromNapiValue for NodeClientInfo
Source§unsafe fn from_napi_value(
env: napi_env,
napi_val: napi_value,
) -> Result<NodeClientInfo>
unsafe fn from_napi_value( env: napi_env, napi_val: napi_value, ) -> Result<NodeClientInfo>
Safety Read more
fn from_unknown(value: Unknown<'_>) -> Result<Self, Error>
Source§impl ToNapiValue for NodeClientInfo
impl ToNapiValue for NodeClientInfo
Source§unsafe fn to_napi_value(
env: napi_env,
val: NodeClientInfo,
) -> Result<napi_value>
unsafe fn to_napi_value( env: napi_env, val: NodeClientInfo, ) -> Result<napi_value>
Safety Read more
fn into_unknown(self, env: &Env) -> Result<Unknown<'_>, Error>
Source§impl TypeName for NodeClientInfo
impl TypeName for NodeClientInfo
Source§impl ValidateNapiValue for NodeClientInfo
impl ValidateNapiValue for NodeClientInfo
Source§unsafe fn validate(
env: *mut napi_env__,
napi_val: *mut napi_value__,
) -> Result<*mut napi_value__, Error>
unsafe fn validate( env: *mut napi_env__, napi_val: *mut napi_value__, ) -> Result<*mut napi_value__, Error>
Safety Read more
Auto Trait Implementations§
impl Freeze for NodeClientInfo
impl RefUnwindSafe for NodeClientInfo
impl Send for NodeClientInfo
impl Sync for NodeClientInfo
impl Unpin for NodeClientInfo
impl UnsafeUnpin for NodeClientInfo
impl UnwindSafe for NodeClientInfo
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