pub struct DocTicket {
pub capability: Capability,
pub nodes: Vec<EndpointAddr>,
}Expand description
Contains both a key (either secret or public) to a document, and a list of peers to join.
Fields§
§capability: Capabilityeither a public or private key
nodes: Vec<EndpointAddr>A list of nodes to contact.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for DocTicket
impl<'de> Deserialize<'de> for DocTicket
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 Ticket for DocTicket
impl Ticket for DocTicket
Source§fn decode_bytes(bytes: &[u8]) -> Result<Self, ParseError>
fn decode_bytes(bytes: &[u8]) -> Result<Self, ParseError>
Decode a ticket from its byte representation.
§fn encode_string(&self) -> String
fn encode_string(&self) -> String
Encode the ticket into its canonical string form. Read more
§fn decode_string(s: &str) -> Result<Self, ParseError>
fn decode_string(s: &str) -> Result<Self, ParseError>
Decode a ticket from its canonical string form. Read more
Auto Trait Implementations§
impl Freeze for DocTicket
impl RefUnwindSafe for DocTicket
impl Send for DocTicket
impl Sync for DocTicket
impl Unpin for DocTicket
impl UnwindSafe for DocTicket
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more