pub struct Server {
pub id: String,
pub username: Option<String>,
pub password: Option<String>,
pub private_key: Option<String>,
pub passphrase: Option<String>,
pub file_permissions: Option<String>,
pub directory_permissions: Option<String>,
}
Fields§
§id: String
§username: Option<String>
§password: Option<String>
§private_key: Option<String>
§passphrase: Option<String>
§file_permissions: Option<String>
§directory_permissions: Option<String>
Implementations§
Trait Implementations§
Source§impl ChildOfListElement for Server
impl ChildOfListElement for Server
fn parent_element_name() -> &'static str
Source§impl<'de> Deserialize<'de> for Server
impl<'de> Deserialize<'de> for Server
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 ElementConverter for Server
impl ElementConverter for Server
Source§fn from_element(
element: Element,
document: &Document,
) -> Result<Self, XMLEditorError>
fn from_element( element: Element, document: &Document, ) -> Result<Self, XMLEditorError>
Converts an [Element] to the specific type.
Source§fn into_children(
self,
document: &mut Document,
) -> Result<Vec<Element>, XMLEditorError>
fn into_children( self, document: &mut Document, ) -> Result<Vec<Element>, XMLEditorError>
Creates all children of the current type.
Source§fn into_element(
self,
document: &mut Document,
) -> Result<Element, XMLEditorError>where
Self: HasElementName,
fn into_element(
self,
document: &mut Document,
) -> Result<Element, XMLEditorError>where
Self: HasElementName,
Creates an [Element] from the current type. Read more
Source§impl HasElementName for Server
impl HasElementName for Server
Source§fn element_name() -> &'static str
fn element_name() -> &'static str
The name of the element.
Source§impl UpdatableElement for Server
impl UpdatableElement for Server
Source§fn update_element(
&self,
element: Element,
document: &mut Document,
) -> Result<(), XMLEditorError>
fn update_element( &self, element: Element, document: &mut Document, ) -> Result<(), XMLEditorError>
Will rewrite the entire element with the current element. Because it might be a change from a password to a private key.
Source§fn replace_all_elements(
self,
element: Element,
document: &mut Document,
) -> Result<(), XMLEditorError>
fn replace_all_elements( self, element: Element, document: &mut Document, ) -> Result<(), XMLEditorError>
Replaces all children of the element with the children of the current element.
impl StructuralPartialEq for Server
Auto Trait Implementations§
impl Freeze for Server
impl RefUnwindSafe for Server
impl Send for Server
impl Sync for Server
impl Unpin for Server
impl UnwindSafe for Server
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