Struct opcua_server::config::ServerEndpoint
source · pub struct ServerEndpoint {
pub path: String,
pub security_policy: String,
pub security_mode: String,
pub security_level: u8,
pub user_token_ids: BTreeSet<String>,
}Fields§
§path: StringEndpoint path
security_policy: StringSecurity policy
security_mode: StringSecurity mode
security_level: u8Security level, higher being more secure
user_token_ids: BTreeSet<String>User tokens
Implementations§
source§impl ServerEndpoint
impl ServerEndpoint
pub fn new<T>(
path: T,
security_policy: SecurityPolicy,
security_mode: MessageSecurityMode,
user_token_ids: &[String]
) -> Selfwhere
T: Into<String>,
sourcepub fn security_level(security_policy: SecurityPolicy) -> u8
pub fn security_level(security_policy: SecurityPolicy) -> u8
Recommends a security level for the supplied security policy
pub fn new_none<T>(path: T, user_token_ids: &[String]) -> Selfwhere
T: Into<String>,
pub fn new_basic128rsa15_sign<T>(path: T, user_token_ids: &[String]) -> Selfwhere
T: Into<String>,
pub fn new_basic128rsa15_sign_encrypt<T>(
path: T,
user_token_ids: &[String]
) -> Selfwhere
T: Into<String>,
pub fn new_basic256_sign<T>(path: T, user_token_ids: &[String]) -> Selfwhere
T: Into<String>,
pub fn new_basic256_sign_encrypt<T>(path: T, user_token_ids: &[String]) -> Selfwhere
T: Into<String>,
pub fn new_basic256sha256_sign<T>(path: T, user_token_ids: &[String]) -> Selfwhere
T: Into<String>,
pub fn new_basic256sha256_sign_encrypt<T>(
path: T,
user_token_ids: &[String]
) -> Selfwhere
T: Into<String>,
pub fn is_valid(
&self,
id: &str,
user_tokens: &BTreeMap<String, ServerUserToken>
) -> bool
pub fn security_policy(&self) -> SecurityPolicy
pub fn message_security_mode(&self) -> MessageSecurityMode
pub fn endpoint_url(&self, base_endpoint: &str) -> String
sourcepub fn supports_anonymous(&self) -> bool
pub fn supports_anonymous(&self) -> bool
Test if the endpoint supports anonymous users
pub fn supports_user_token_id(&self, id: &str) -> bool
Trait Implementations§
source§impl Clone for ServerEndpoint
impl Clone for ServerEndpoint
source§fn clone(&self) -> ServerEndpoint
fn clone(&self) -> ServerEndpoint
Returns a copy 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 ServerEndpoint
impl Debug for ServerEndpoint
source§impl<'de> Deserialize<'de> for ServerEndpoint
impl<'de> Deserialize<'de> for ServerEndpoint
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<'a> From<(&'a str, SecurityPolicy, MessageSecurityMode, &'a [&'a str])> for ServerEndpoint
impl<'a> From<(&'a str, SecurityPolicy, MessageSecurityMode, &'a [&'a str])> for ServerEndpoint
Convenience method to make an endpoint from a tuple
source§fn from(
v: (&'a str, SecurityPolicy, MessageSecurityMode, &'a [&'a str])
) -> ServerEndpoint
fn from(
v: (&'a str, SecurityPolicy, MessageSecurityMode, &'a [&'a str])
) -> ServerEndpoint
Converts to this type from the input type.