[−][src]Struct google_docs1::WriteControl
Provides control over how write requests are executed.
This type is not used in any activity, and only used as part of another schema.
Fields
required_revision_id: Option<String>
The revision ID of the document that the write request will be applied to. If this is not the latest revision of the document, the request will not be processed and will return a 400 bad request error.
When a required revision ID is returned in a response, it indicates the revision ID of the document after the request was applied.
target_revision_id: Option<String>
The target revision ID of the document that the write request will be applied to.
If collaborator changes have occurred after the document was read using
the API, the changes produced by this write request will be transformed
against the collaborator changes. This results in a new revision of the
document which incorporates both the changes in the request and the
collaborator changes, and the Docs server will resolve conflicting
changes. When using target_revision_id
, the API client can be thought
of as another collaborator of the document.
The target revision ID may only be used to write to recent versions of a
document. If the target revision is too far behind the latest revision,
the request will not be processed and will return a 400 bad request error
and the request should be retried after reading the latest version of the
document. In most cases a revision_id
will remain valid for use as a
target revision for several minutes after it is read, but for
frequently-edited documents this window may be shorter.
Trait Implementations
impl Part for WriteControl
[src]
impl Default for WriteControl
[src]
fn default() -> WriteControl
[src]
impl Clone for WriteControl
[src]
fn clone(&self) -> WriteControl
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Debug for WriteControl
[src]
impl Serialize for WriteControl
[src]
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer,
[src]
__S: Serializer,
impl<'de> Deserialize<'de> for WriteControl
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
Auto Trait Implementations
impl Send for WriteControl
impl Unpin for WriteControl
impl Sync for WriteControl
impl UnwindSafe for WriteControl
impl RefUnwindSafe for WriteControl
Blanket Implementations
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Typeable for T where
T: Any,
T: Any,
impl<T> DeserializeOwned for T where
T: Deserialize<'de>,
[src]
T: Deserialize<'de>,