pub struct Revision {
pub id: Option<String>,
pub parent_id: Option<String>,
pub timestamp: Option<String>,
pub comment: Option<String>,
pub origin: Option<String>,
pub model: Option<String>,
pub format: Option<String>,
pub text: Option<String>,
pub sha1: Option<String>,
}Fields§
§id: Option<String>§parent_id: Option<String>§timestamp: Option<String>§comment: Option<String>§origin: Option<String>§model: Option<String>§format: Option<String>§text: Option<String>§sha1: Option<String>Implementations§
Source§impl Revision
impl Revision
pub async fn id(&self, ctx: &Context<'_>) -> Result<&Option<String>>
pub async fn parent_id(&self, ctx: &Context<'_>) -> Result<&Option<String>>
pub async fn timestamp(&self, ctx: &Context<'_>) -> Result<&Option<String>>
pub async fn comment(&self, ctx: &Context<'_>) -> Result<&Option<String>>
pub async fn origin(&self, ctx: &Context<'_>) -> Result<&Option<String>>
pub async fn model(&self, ctx: &Context<'_>) -> Result<&Option<String>>
pub async fn format(&self, ctx: &Context<'_>) -> Result<&Option<String>>
pub async fn text(&self, ctx: &Context<'_>) -> Result<&Option<String>>
pub async fn sha1(&self, ctx: &Context<'_>) -> Result<&Option<String>>
Trait Implementations§
Source§impl ContainerType for Revision
impl ContainerType for Revision
Source§async fn resolve_field(&self, ctx: &Context<'_>) -> ServerResult<Option<Value>>
async fn resolve_field(&self, ctx: &Context<'_>) -> ServerResult<Option<Value>>
Resolves a field value and outputs it as a json value
async_graphql::Value. Read moreSource§fn collect_all_fields<'a>(
&'a self,
ctx: &ContextBase<'a, &'a Positioned<SelectionSet>>,
fields: &mut Fields<'a>,
) -> Result<(), ServerError>
fn collect_all_fields<'a>( &'a self, ctx: &ContextBase<'a, &'a Positioned<SelectionSet>>, fields: &mut Fields<'a>, ) -> Result<(), ServerError>
Collect all the fields of the container that are queried in the
selection set. Read more
Source§fn find_entity(
&self,
_: &ContextBase<'_, &Positioned<Field>>,
_params: &ConstValue,
) -> impl Future<Output = Result<Option<ConstValue>, ServerError>> + Send
fn find_entity( &self, _: &ContextBase<'_, &Positioned<Field>>, _params: &ConstValue, ) -> impl Future<Output = Result<Option<ConstValue>, ServerError>> + Send
Find the GraphQL entity with the given name from the parameter. Read more
Source§impl<'de> Deserialize<'de> for Revision
impl<'de> Deserialize<'de> for Revision
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
impl ObjectType for Revision
Source§impl OutputType for Revision
impl OutputType for Revision
Source§fn create_type_info(registry: &mut Registry) -> String
fn create_type_info(registry: &mut Registry) -> String
Create type information in the registry and return qualified typename.
Source§async fn resolve(
&self,
ctx: &ContextSelectionSet<'_>,
_field: &Positioned<Field>,
) -> ServerResult<Value>
async fn resolve( &self, ctx: &ContextSelectionSet<'_>, _field: &Positioned<Field>, ) -> ServerResult<Value>
Resolve an output value to
async_graphql::Value.Source§fn qualified_type_name() -> String
fn qualified_type_name() -> String
Qualified typename.
impl StructuralPartialEq for Revision
Auto Trait Implementations§
impl Freeze for Revision
impl RefUnwindSafe for Revision
impl Send for Revision
impl Sync for Revision
impl Unpin for Revision
impl UnsafeUnpin for Revision
impl UnwindSafe for Revision
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