pub struct IkeProposalRequest {
pub name: String,
pub description: Option<String>,
pub authentication_method: AuthenticationMethod,
pub encryption_algorithm: EncryptionAlgorithm,
pub authentication_algorithm: Option<AuthenticationAlgorithm>,
pub group: i32,
pub sa_lifetime: Option<Option<i32>>,
pub comments: Option<String>,
pub tags: Option<Vec<NestedTagRequest>>,
pub custom_fields: Option<HashMap<String, Value>>,
}Expand description
IkeProposalRequest : Adds support for custom fields and tags.
Fields§
§name: String§description: Option<String>§authentication_method: AuthenticationMethodpreshared-keys- Pre-shared keys *certificates- Certificates *rsa-signatures- RSA signatures *dsa-signatures- DSA signatures
encryption_algorithm: EncryptionAlgorithmaes-128-cbc- 128-bit AES (CBC) *aes-128-gcm- 128-bit AES (GCM) *aes-192-cbc- 192-bit AES (CBC) *aes-192-gcm- 192-bit AES (GCM) *aes-256-cbc- 256-bit AES (CBC) *aes-256-gcm- 256-bit AES (GCM) *3des-cbc- 3DES *des-cbc- DES
authentication_algorithm: Option<AuthenticationAlgorithm>hmac-sha1- SHA-1 HMAC *hmac-sha256- SHA-256 HMAC *hmac-sha384- SHA-384 HMAC *hmac-sha512- SHA-512 HMAC *hmac-md5- MD5 HMAC
group: i321- Group 1 *2- Group 2 *5- Group 5 *14- Group 14 *15- Group 15 *16- Group 16 *17- Group 17 *18- Group 18 *19- Group 19 *20- Group 20 *21- Group 21 *22- Group 22 *23- Group 23 *24- Group 24 *25- Group 25 *26- Group 26 *27- Group 27 *28- Group 28 *29- Group 29 *30- Group 30 *31- Group 31 *32- Group 32 *33- Group 33 *34- Group 34
sa_lifetime: Option<Option<i32>>Security association lifetime (in seconds)
comments: Option<String>§custom_fields: Option<HashMap<String, Value>>Implementations§
Source§impl IkeProposalRequest
impl IkeProposalRequest
Sourcepub fn new(
name: String,
authentication_method: AuthenticationMethod,
encryption_algorithm: EncryptionAlgorithm,
group: i32,
) -> IkeProposalRequest
pub fn new( name: String, authentication_method: AuthenticationMethod, encryption_algorithm: EncryptionAlgorithm, group: i32, ) -> IkeProposalRequest
Adds support for custom fields and tags.
Trait Implementations§
Source§impl Clone for IkeProposalRequest
impl Clone for IkeProposalRequest
Source§fn clone(&self) -> IkeProposalRequest
fn clone(&self) -> IkeProposalRequest
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 IkeProposalRequest
impl Debug for IkeProposalRequest
Source§impl Default for IkeProposalRequest
impl Default for IkeProposalRequest
Source§fn default() -> IkeProposalRequest
fn default() -> IkeProposalRequest
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for IkeProposalRequest
impl<'de> Deserialize<'de> for IkeProposalRequest
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 PartialEq for IkeProposalRequest
impl PartialEq for IkeProposalRequest
Source§impl Serialize for IkeProposalRequest
impl Serialize for IkeProposalRequest
impl StructuralPartialEq for IkeProposalRequest
Auto Trait Implementations§
impl Freeze for IkeProposalRequest
impl RefUnwindSafe for IkeProposalRequest
impl Send for IkeProposalRequest
impl Sync for IkeProposalRequest
impl Unpin for IkeProposalRequest
impl UnwindSafe for IkeProposalRequest
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