pub struct DocumentRef {
pub id: String,
pub url: String,
}Expand description
A reference to a Google Doc: its id and human-openable URL.
Parsed from the foreign Document at the API boundary (EI-3) so callers
deal in this domain type, not the generated struct.
Fields§
§id: StringThe document id (the {id} in its URL).
url: StringThe browser URL for the document.
Implementations§
Trait Implementations§
Source§impl Clone for DocumentRef
impl Clone for DocumentRef
Source§fn clone(&self) -> DocumentRef
fn clone(&self) -> DocumentRef
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 DocumentRef
impl Debug for DocumentRef
impl Eq for DocumentRef
Source§impl PartialEq for DocumentRef
impl PartialEq for DocumentRef
impl StructuralPartialEq for DocumentRef
Auto Trait Implementations§
impl Freeze for DocumentRef
impl RefUnwindSafe for DocumentRef
impl Send for DocumentRef
impl Sync for DocumentRef
impl Unpin for DocumentRef
impl UnsafeUnpin for DocumentRef
impl UnwindSafe for DocumentRef
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,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.