pub struct BridgeServerDescriptor {
pub common: ServerDescriptor,
pub ed25519_certificate_hash: Option<String>,
pub router_digest_sha256: Option<String>,
/* private fields */
}Fields§
§common: ServerDescriptor§ed25519_certificate_hash: Option<String>§router_digest_sha256: Option<String>Implementations§
Source§impl BridgeServerDescriptor
impl BridgeServerDescriptor
pub fn parse(content: &[u8], validate: bool) -> Result<Self>
pub fn parse_with_annotations( content: &[u8], validate: bool, annotations: Vec<String>, ) -> Result<Self>
pub fn parse_many(content: &[u8], validate: bool) -> Result<Vec<Self>>
pub fn digest(&self) -> Option<&str>
pub fn is_scrubbed(&self) -> bool
pub fn scrubbing_issues(&self) -> Vec<String>
pub fn content(attributes: &Attributes, exclude: &[&str]) -> Vec<u8> ⓘ
pub fn create( attributes: &Attributes, exclude: &[&str], validate: bool, ) -> Result<Self>
Trait Implementations§
Source§impl Clone for BridgeServerDescriptor
impl Clone for BridgeServerDescriptor
Source§impl Debug for BridgeServerDescriptor
impl Debug for BridgeServerDescriptor
Source§impl Deref for BridgeServerDescriptor
impl Deref for BridgeServerDescriptor
Source§type Target = ServerDescriptor
type Target = ServerDescriptor
The resulting type after dereferencing.
Source§fn deref(&self) -> &ServerDescriptor
fn deref(&self) -> &ServerDescriptor
Dereferences the value.
Source§impl PartialEq for BridgeServerDescriptor
impl PartialEq for BridgeServerDescriptor
Source§impl Serialize for BridgeServerDescriptor
impl Serialize for BridgeServerDescriptor
impl StructuralPartialEq for BridgeServerDescriptor
Auto Trait Implementations§
impl Freeze for BridgeServerDescriptor
impl RefUnwindSafe for BridgeServerDescriptor
impl Send for BridgeServerDescriptor
impl Sync for BridgeServerDescriptor
impl Unpin for BridgeServerDescriptor
impl UnsafeUnpin for BridgeServerDescriptor
impl UnwindSafe for BridgeServerDescriptor
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