pub struct IkeProposal {Show 17 fields
pub id: Option<i32>,
pub url: Option<String>,
pub display_url: Option<String>,
pub display: Option<String>,
pub name: String,
pub description: Option<String>,
pub authentication_method: Box<IkeProposalAuthenticationMethod>,
pub encryption_algorithm: Box<IkeProposalEncryptionAlgorithm>,
pub authentication_algorithm: Option<Box<IkeProposalAuthenticationAlgorithm>>,
pub group: Box<IkeProposalGroup>,
pub sa_lifetime: Option<Option<i32>>,
pub owner: Option<Option<Box<BriefOwner>>>,
pub comments: Option<String>,
pub tags: Option<Vec<NestedTag>>,
pub custom_fields: Option<HashMap<String, Value>>,
pub created: Option<Option<String>>,
pub last_updated: Option<Option<String>>,
}Expand description
IkeProposal : Base serializer class for models inheriting from PrimaryModel.
Fields§
§id: Option<i32>§url: Option<String>§display_url: Option<String>§display: Option<String>§name: String§description: Option<String>§authentication_method: Box<IkeProposalAuthenticationMethod>§encryption_algorithm: Box<IkeProposalEncryptionAlgorithm>§authentication_algorithm: Option<Box<IkeProposalAuthenticationAlgorithm>>§group: Box<IkeProposalGroup>§sa_lifetime: Option<Option<i32>>Security association lifetime (in seconds)
owner: Option<Option<Box<BriefOwner>>>§comments: Option<String>§custom_fields: Option<HashMap<String, Value>>§created: Option<Option<String>>§last_updated: Option<Option<String>>Implementations§
Source§impl IkeProposal
impl IkeProposal
Sourcepub fn new(
name: String,
authentication_method: IkeProposalAuthenticationMethod,
encryption_algorithm: IkeProposalEncryptionAlgorithm,
group: IkeProposalGroup,
) -> IkeProposal
pub fn new( name: String, authentication_method: IkeProposalAuthenticationMethod, encryption_algorithm: IkeProposalEncryptionAlgorithm, group: IkeProposalGroup, ) -> IkeProposal
Base serializer class for models inheriting from PrimaryModel.
Trait Implementations§
Source§impl Clone for IkeProposal
impl Clone for IkeProposal
Source§fn clone(&self) -> IkeProposal
fn clone(&self) -> IkeProposal
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 IkeProposal
impl Debug for IkeProposal
Source§impl Default for IkeProposal
impl Default for IkeProposal
Source§fn default() -> IkeProposal
fn default() -> IkeProposal
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for IkeProposal
impl<'de> Deserialize<'de> for IkeProposal
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 IkeProposal
impl PartialEq for IkeProposal
Source§fn eq(&self, other: &IkeProposal) -> bool
fn eq(&self, other: &IkeProposal) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for IkeProposal
impl Serialize for IkeProposal
impl StructuralPartialEq for IkeProposal
Auto Trait Implementations§
impl Freeze for IkeProposal
impl RefUnwindSafe for IkeProposal
impl Send for IkeProposal
impl Sync for IkeProposal
impl Unpin for IkeProposal
impl UnsafeUnpin for IkeProposal
impl UnwindSafe for IkeProposal
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