pub struct Projection {
pub requests: Vec<Request>,
pub positions: PositionMap,
}Expand description
The output of project: the ordered batch requests and the position map.
google_docs1::api::Request does not implement PartialEq; compare two
projections by serializing requests rather than via ==.
Fields§
§requests: Vec<Request>The batchUpdate requests, in application order.
positions: PositionMapWhere each anchorable element landed.
Implementations§
Source§impl Projection
impl Projection
Sourcepub fn fingerprint(&self) -> String
pub fn fingerprint(&self) -> String
A stable fingerprint of the projected requests (a hex SHA-256 of their serialized form).
Push records this in ** Sync State; a re-push whose projection produces
the same fingerprint can skip the full-replace and so preserve the anchors
of existing Google comments (a full-replace deletes the text they anchor
to). Identical input AST ⇒ identical requests ⇒ identical fingerprint.
Trait Implementations§
Source§impl Clone for Projection
impl Clone for Projection
Source§fn clone(&self) -> Projection
fn clone(&self) -> Projection
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 moreAuto Trait Implementations§
impl Freeze for Projection
impl RefUnwindSafe for Projection
impl Send for Projection
impl Sync for Projection
impl Unpin for Projection
impl UnsafeUnpin for Projection
impl UnwindSafe for Projection
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