Struct plexo_sdk::organization::operations::Organization
source · pub struct Organization {
pub id: Uuid,
pub created_at: DateTime<Utc>,
pub updated_at: DateTime<Utc>,
pub owner_id: Uuid,
pub name: String,
pub raw_value: String,
pub photo_url: String,
pub email: String,
pub description: Option<String>,
pub hub_id: Option<String>,
pub plan_id: Option<String>,
}Fields§
§id: Uuid§created_at: DateTime<Utc>§updated_at: DateTime<Utc>§owner_id: Uuid§name: String§raw_value: String§photo_url: String§email: String§description: Option<String>§hub_id: Option<String>§plan_id: Option<String>Implementations§
source§impl Organization
impl Organization
pub async fn id(&self, ctx: &Context<'_>) -> Result<&Uuid>
pub async fn created_at(&self, ctx: &Context<'_>) -> Result<&DateTime<Utc>>
pub async fn updated_at(&self, ctx: &Context<'_>) -> Result<&DateTime<Utc>>
pub async fn owner_id(&self, ctx: &Context<'_>) -> Result<&Uuid>
pub async fn name(&self, ctx: &Context<'_>) -> Result<&String>
pub async fn raw_value(&self, ctx: &Context<'_>) -> Result<&String>
pub async fn photo_url(&self, ctx: &Context<'_>) -> Result<&String>
pub async fn email(&self, ctx: &Context<'_>) -> Result<&String>
pub async fn description(&self, ctx: &Context<'_>) -> Result<&Option<String>>
pub async fn hub_id(&self, ctx: &Context<'_>) -> Result<&Option<String>>
pub async fn plan_id(&self, ctx: &Context<'_>) -> Result<&Option<String>>
Trait Implementations§
source§impl Clone for Organization
impl Clone for Organization
source§fn clone(&self) -> Organization
fn clone(&self) -> Organization
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl ContainerType for Organization
impl ContainerType for Organization
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 Debug for Organization
impl Debug for Organization
source§impl From<OrganizationSettings> for Organization
impl From<OrganizationSettings> for Organization
source§fn from(org_setting: OrganizationSettings) -> Self
fn from(org_setting: OrganizationSettings) -> Self
Converts to this type from the input type.
source§impl OutputType for Organization
impl OutputType for Organization
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.
source§impl ParseFromJSON for Organization
impl ParseFromJSON for Organization
source§fn parse_from_json(value: Option<Value>) -> Result<Self, ParseError<Self>>
fn parse_from_json(value: Option<Value>) -> Result<Self, ParseError<Self>>
Parse from
serde_json::Value.source§fn parse_from_json_string(s: &str) -> Result<Self, ParseError<Self>>
fn parse_from_json_string(s: &str) -> Result<Self, ParseError<Self>>
Parse from JSON string.
source§impl ParseFromXML for Organization
impl ParseFromXML for Organization
source§fn parse_from_xml(value: Option<Value>) -> Result<Self, ParseError<Self>>
fn parse_from_xml(value: Option<Value>) -> Result<Self, ParseError<Self>>
Parse from
serde_json::Value.source§fn parse_from_xml_string(s: &str) -> Result<Self, ParseError<Self>>
fn parse_from_xml_string(s: &str) -> Result<Self, ParseError<Self>>
Parse from XML string.
source§impl ParseFromYAML for Organization
impl ParseFromYAML for Organization
source§fn parse_from_yaml(value: Option<Value>) -> Result<Self, ParseError<Self>>
fn parse_from_yaml(value: Option<Value>) -> Result<Self, ParseError<Self>>
Parse from
serde_json::Value.source§fn parse_from_yaml_string(s: &str) -> Result<Self, ParseError<Self>>
fn parse_from_yaml_string(s: &str) -> Result<Self, ParseError<Self>>
Parse from YAML string.
source§impl Serialize for Organization
impl Serialize for Organization
source§impl ToJSON for Organization
impl ToJSON for Organization
source§impl ToXML for Organization
impl ToXML for Organization
source§impl ToYAML for Organization
impl ToYAML for Organization
source§impl Type for Organization
impl Type for Organization
source§const IS_REQUIRED: bool = true
const IS_REQUIRED: bool = true
If it is
true, it means that this type is required.§type RawValueType = Organization
type RawValueType = Organization
The raw type used for validator. Read more
§type RawElementValueType = Organization
type RawElementValueType = Organization
The raw element type used for validator.
source§fn schema_ref() -> MetaSchemaRef
fn schema_ref() -> MetaSchemaRef
Get schema reference of this type.
source§fn as_raw_value(&self) -> Option<&Self::RawValueType>
fn as_raw_value(&self) -> Option<&Self::RawValueType>
Returns a reference to the raw value.
source§fn raw_element_iter<'a>(
&'a self
) -> Box<dyn Iterator<Item = &'a Self::RawElementValueType> + 'a>
fn raw_element_iter<'a>( &'a self ) -> Box<dyn Iterator<Item = &'a Self::RawElementValueType> + 'a>
Returns an iterator for traversing the elements.
impl ObjectType for Organization
Auto Trait Implementations§
impl Freeze for Organization
impl RefUnwindSafe for Organization
impl Send for Organization
impl Sync for Organization
impl Unpin for Organization
impl UnwindSafe for Organization
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