pub struct ShareRequest {
pub doc_id: NamespaceId,
pub mode: ShareMode,
pub addr_options: AddrInfoOptions,
}
Available on crate feature
rpc
only.Expand description
Share a document with peers over a ticket.
Fields§
§doc_id: NamespaceId
The document id
mode: ShareMode
Whether to share read or write access to the document
addr_options: AddrInfoOptions
Configuration of the addresses in the ticket.
Trait Implementations§
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§fn from(value: ShareRequest) -> Self
fn from(value: ShareRequest) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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