ApiClient

Struct ApiClient 

Source
pub struct ApiClient {
    pub client: Client,
    pub server: Url,
}

Fields§

§client: Client§server: Url

Implementations§

Source§

impl ApiClient

Source

pub fn request( &self, method: Method, endpoint: &str, ) -> Result<RequestBuilder, ParseError>

Source

pub fn builder(base_url: Url) -> ApiClientBuilder

Source

pub async fn do_req_paged<T, E>( &self, req: RequestBuilder, ) -> Result<PagedVec<T>, ApiClientError<E>>

Source

pub async fn do_req<T, E>( &self, req: RequestBuilder, ) -> Result<T, ApiClientError<E>>

Source§

impl ApiClient

Source

pub async fn comment_get(&self, comment_id: Base64Uuid) -> Result<Comment>

Retrieves a comment from a discussion thread by comment ID

Source

pub async fn comment_delete(&self, comment_id: Base64Uuid) -> Result<()>

Deletes a comment in a discussion thread by comment ID

Source

pub async fn comment_update( &self, comment_id: Base64Uuid, payload: UpdateComment, ) -> Result<Comment>

Updates a comment in a discussion thread by comment ID

Source

pub async fn event_delete(&self, event_id: Base64Uuid) -> Result<()>

Deletes a event

Source

pub async fn workspace_invite_delete( &self, invitation_id: Base64Uuid, ) -> Result<()>

Deletes a pending workspace invitation

Source

pub async fn workspace_invite_accept( &self, invitation_id: Base64Uuid, invitation_secret: &str, ) -> Result<Workspace>

Accepts the workspace invitation

Source

pub async fn workspace_invite_decline( &self, invitation_id: Base64Uuid, invitation_secret: &str, ) -> Result<()>

Declines the workspace invitation

Source

pub async fn logout(&self) -> Result<()>

Log out of Fiberplane

Source

pub async fn notebook_get(&self, notebook_id: Base64Uuid) -> Result<Notebook>

Retrieves a single notebook (both its metadata and content)

Source

pub async fn notebook_delete(&self, notebook_id: Base64Uuid) -> Result<()>

Deletes a notebook

Source

pub async fn notebook_update( &self, notebook_id: Base64Uuid, payload: UpdateNotebook, ) -> Result<()>

Modifies individual properties of a single notebook

Source

pub async fn notebook_cells_append( &self, notebook_id: Base64Uuid, after: Option<&str>, before: Option<&str>, payload: Vec<Cell>, ) -> Result<Vec<Cell>>

Append the given cells to the notebook. Any cells that have their ID missing will be set on the server.

Source

pub async fn notebook_cell_append_text( &self, notebook_id: Base64Uuid, cell_id: &str, payload: CellAppendText, ) -> Result<Cell>

Append the given text and optional formatting to the specified cell

Source

pub async fn notebook_cell_replace_text( &self, notebook_id: Base64Uuid, cell_id: &str, payload: CellReplaceText, ) -> Result<Cell>

Replace some text and formatting in the specified cell

Source

pub async fn notebook_duplicate( &self, notebook_id: Base64Uuid, payload: NotebookCopyDestination, ) -> Result<Notebook>

Creates a copy of the specified notebook

Source

pub async fn notebook_upload_file( &self, notebook_id: Base64Uuid, payload: UploadData, ) -> Result<FileSummary>

upload a file

Source

pub async fn notebook_get_file( &self, notebook_id: Base64Uuid, file_id: &str, ) -> Result<Bytes>

Get a file from a notebook

Source

pub async fn notebook_delete_file( &self, notebook_id: Base64Uuid, file_id: &str, ) -> Result<()>

Delete a file from a notebook

Source

pub async fn front_matter_add_keys( &self, notebook_id: Base64Uuid, payload: FrontMatterAddRows, ) -> Result<()>

Adds rows to the front matter of a notebook. If the requested position is out of bounds or is not specified, will append the rows to the existing front matter.

Source

pub async fn front_matter_delete(&self, notebook_id: Base64Uuid) -> Result<()>

Deletes all front matter data for notebook. If you wish to delete a single key instead of the whole object, use the patch endpoint with value: null

Source

pub async fn front_matter_update( &self, notebook_id: Base64Uuid, payload: FrontMatter, ) -> Result<()>

Updates front matter for a given notebook

Source

pub async fn front_matter_delete_key( &self, notebook_id: Base64Uuid, front_matter_key: &str, ) -> Result<()>

Deletes a row of the front matter for a notebook.

Source

pub async fn front_matter_update_key( &self, notebook_id: Base64Uuid, front_matter_key: &str, payload: FrontMatterUpdateRow, ) -> Result<()>

Updates a front matter row of a given notebook

Source

pub async fn notebook_snippet_insert( &self, notebook_id: Base64Uuid, snippet_name: &Name, cell_id: Option<&str>, ) -> Result<Vec<Cell>>

Expand the snippet and insert the cells into the notebook

Source

pub async fn notebook_convert_to_snippet( &self, notebook_id: Base64Uuid, start_cell_id: Option<&str>, end_cell_id: Option<&str>, ) -> Result<String>

Convert the notebook cells to a snippet

Source

pub async fn notebook_convert_to_template( &self, notebook_id: Base64Uuid, ) -> Result<String>

Downloads the specified notebooks as a Jsonnet template.

Source

pub async fn threads_list( &self, notebook_id: Base64Uuid, status: Option<ThreadStatus>, ) -> Result<Vec<ThreadSummary>>

List the threads in the given notebook

Source

pub async fn thread_create( &self, notebook_id: Base64Uuid, payload: NewThread, ) -> Result<Thread>

Creates a new comment thread in a notebook

Source

pub async fn oidc_authorize( &self, provider: &str, cli_redirect_port: Option<i32>, redirect: Option<&str>, ) -> Result<()>

Start the auth flow to authenticate a user (used only with the Studio). For authenticating with the API see the Authentication section in the docs

Source

pub async fn oid_linkup( &self, provider: &str, cli_redirect_port: Option<i32>, redirect: Option<&str>, ) -> Result<OidLinkupLocation>

Start the auth flow for linking an existing Fiberplane account with a new OID identity (used only with the Studio). For authenticating with the API see the Authentication section in the docs

Source

pub async fn pinned_notebook_create( &self, payload: NewPinnedNotebook, ) -> Result<()>

Pins a notebook

Source

pub async fn pinned_notebook_delete( &self, notebook_id: Base64Uuid, ) -> Result<()>

Unpins a notebook

Source

pub async fn profile_get(&self) -> Result<Profile>

Fetch the profile of the authenticated user

Source

pub async fn oid_connections_list(&self) -> Result<Vec<OidConnection>>

List of all available providers and if they’re linked to the current user

Source

pub async fn integrations_get_by_user( &self, ) -> Result<Vec<PersonalIntegrationSummary>>

Get a list of all integrations and their status for the current user

Source

pub async fn profile_picture_get(&self) -> Result<Bytes>

Retrieve profile image

Source

pub async fn profile_picture_update( &self, payload: ProfileUploadData, ) -> Result<()>

Upload profile image

Source

pub async fn thread_get(&self, thread_id: Base64Uuid) -> Result<Thread>

Retrieves a discussion thread by ID

Source

pub async fn thread_delete(&self, thread_id: Base64Uuid) -> Result<()>

Deletes a discussion thread by ID

Source

pub async fn comment_create( &self, thread_id: Base64Uuid, payload: NewComment, ) -> Result<Comment>

Creates a comment in a discussion thread by ID

Source

pub async fn thread_reopen(&self, thread_id: Base64Uuid) -> Result<Thread>

Reopens a discussion thread by ID

Source

pub async fn thread_resolve(&self, thread_id: Base64Uuid) -> Result<Thread>

Resolves a discussion thread by ID

Source

pub async fn token_list( &self, sort_by: Option<&str>, sort_direction: Option<&str>, page: Option<i32>, limit: Option<i32>, ) -> Result<Vec<TokenSummary>>

Retrieves a list of all API tokens

Source

pub async fn token_create(&self, payload: NewToken) -> Result<Token>

Creates a new token

Source

pub async fn token_delete(&self, id: Base64Uuid) -> Result<()>

Deletes a token

Source

pub async fn trigger_get(&self, trigger_id: Base64Uuid) -> Result<Trigger>

Retrieves a trigger from a workspace by its ID

Source

pub async fn trigger_delete(&self, trigger_id: Base64Uuid) -> Result<()>

Deletes a trigger from a workspace by its ID

Source

pub async fn trigger_invoke( &self, trigger_id: Base64Uuid, secret_key: &str, payload: TemplateExpandPayload, ) -> Result<TriggerInvokeResponse>

Invoke a trigger to create a notebook from the associated template

Source

pub async fn workspace_list( &self, sort_by: Option<&str>, sort_direction: Option<&str>, ) -> Result<Vec<Workspace>>

List all workspaces authenticated user has access to

Source

pub async fn workspace_create(&self, payload: NewWorkspace) -> Result<Workspace>

Creates a new workspace

Source

pub async fn workspace_get(&self, workspace_id: Base64Uuid) -> Result<Workspace>

Get the workspace details

Source

pub async fn workspace_delete(&self, workspace_id: Base64Uuid) -> Result<()>

Permanently deletes a specified workspace

Source

pub async fn workspace_update( &self, workspace_id: Base64Uuid, payload: UpdateWorkspace, ) -> Result<Workspace>

Update workspace settings

Source

pub async fn data_source_list( &self, workspace_id: Base64Uuid, ) -> Result<Vec<DataSource>>

Get all workspace data sources

Source

pub async fn data_source_create( &self, workspace_id: Base64Uuid, payload: NewDataSource, ) -> Result<DataSource>

Creates a workspace data source

Source

pub async fn data_source_get( &self, workspace_id: Base64Uuid, data_source_name: &Name, ) -> Result<DataSource>

Get the data source’s details

Source

pub async fn data_source_delete( &self, workspace_id: Base64Uuid, data_source_name: &Name, ) -> Result<()>

Delete a data source

Source

pub async fn data_source_update( &self, workspace_id: Base64Uuid, data_source_name: &Name, payload: UpdateDataSource, ) -> Result<DataSource>

Update a data source

Source

pub async fn event_list( &self, workspace_id: Base64Uuid, occurrence_time_start: Timestamp, occurrence_time_end: Timestamp, labels: Option<HashMap<String, String>>, sort_by: Option<&str>, sort_direction: Option<&str>, page: Option<i32>, limit: Option<i32>, ) -> Result<Vec<Event>>

Get a list of all events matching the query

Source

pub async fn event_create( &self, workspace_id: Base64Uuid, payload: NewEvent, ) -> Result<Event>

Creates a new event

Source

pub async fn workspace_front_matter_schema_get( &self, workspace_id: Base64Uuid, ) -> Result<WorkspaceFrontMatterSchemas>

Retrieve all front matter schemas defined in the workspace

Source

pub async fn workspace_front_matter_schema_create( &self, workspace_id: Base64Uuid, payload: NewWorkspaceFrontMatterSchema, ) -> Result<()>

Retrieve a front matter schema defined in the workspace

Source

pub async fn workspace_front_matter_schema_get_by_name( &self, workspace_id: Base64Uuid, front_matter_schema_name: &str, ) -> Result<FrontMatterSchema>

Retrieve a front matter schema defined in the workspace

Source

pub async fn workspace_front_matter_schema_delete( &self, workspace_id: Base64Uuid, front_matter_schema_name: &str, ) -> Result<()>

Delete a front matter schema defined in the workspace

Source

pub async fn integrations_get_by_workspace( &self, workspace_id: Base64Uuid, ) -> Result<Vec<WorkspaceIntegrationSummary>>

Get a list of al integrations and their status for the specified workspace

Source

pub async fn workspace_invite_get( &self, workspace_id: Base64Uuid, sort_by: Option<&str>, sort_direction: Option<&str>, page: Option<i32>, limit: Option<i32>, ) -> Result<Vec<WorkspaceInvite>>

Retrieves a list of pending workspace invitations

Source

pub async fn workspace_invite_create( &self, workspace_id: Base64Uuid, payload: NewWorkspaceInvite, ) -> Result<WorkspaceInviteResponse>

Invites a user to a workspace

Source

pub async fn label_keys_list( &self, workspace_id: Base64Uuid, prefix: Option<&str>, ) -> Result<Vec<String>>

Retrieve all label keys

Source

pub async fn label_values_list( &self, workspace_id: Base64Uuid, label_key: &str, prefix: Option<&str>, ) -> Result<Vec<String>>

Retrieve all label values

Source

pub async fn workspace_leave(&self, workspace_id: Base64Uuid) -> Result<()>

Leaves a workspace

Source

pub async fn notebook_list( &self, workspace_id: Base64Uuid, ) -> Result<Vec<NotebookSummary>>

Retrieves all Notebooks available to the workspace

Source

pub async fn notebook_create( &self, workspace_id: Base64Uuid, payload: NewNotebook, ) -> Result<Notebook>

Create a new notebook

Source

pub async fn pagerduty_receiver_list( &self, workspace_id: Base64Uuid, page: Option<i32>, limit: Option<i32>, sort_by: Option<&str>, sort_direction: Option<&str>, ) -> Result<PagedVec<PagerDutyReceiver>, ApiClientError<PagerDutyReceiverListError>>

TODO

Source

pub async fn pagerduty_receiver_get( &self, workspace_id: Base64Uuid, pager_duty_receiver_name: &Name, ) -> Result<PagerDutyReceiver, ApiClientError<PagerDutyReceiverGetError>>

TODO

Source

pub async fn pagerduty_receiver_create( &self, workspace_id: Base64Uuid, pager_duty_receiver_name: &Name, payload: NewPagerDutyReceiver, ) -> Result<PagerDutyReceiver, ApiClientError<PagerDutyReceiverCreateError>>

TODO

Source

pub async fn pagerduty_receiver_delete( &self, workspace_id: Base64Uuid, pager_duty_receiver_name: &Name, ) -> Result<(), ApiClientError<PagerDutyReceiverDeleteError>>

TODO

Source

pub async fn pagerduty_receiver_update( &self, workspace_id: Base64Uuid, pager_duty_receiver_name: &Name, payload: UpdatePagerDutyReceiver, ) -> Result<PagerDutyReceiver, ApiClientError<PagerDutyReceiverUpdateError>>

TODO

Source

pub async fn workspace_picture_get( &self, workspace_id: Base64Uuid, ) -> Result<Bytes>

Retrieves a workspace image

Source

pub async fn workspace_picture_update( &self, workspace_id: Base64Uuid, payload: ProfileUploadData, ) -> Result<()>

Uploads a workspace image

Source

pub async fn pinned_view_get( &self, workspace_id: Base64Uuid, ) -> Result<Vec<View>>

Get all pinned views for the current user

Source

pub async fn pinned_view_add( &self, workspace_id: Base64Uuid, payload: PinnedView, ) -> Result<()>

Add an existing view to the pinned views list

Source

pub async fn pinned_view_remove( &self, workspace_id: Base64Uuid, view_name: &Name, ) -> Result<()>

Remove view from the pinned views list

Source

pub async fn pinned_notebook_list( &self, workspace_id: Base64Uuid, ) -> Result<Vec<NotebookSummary>>

List all pinned notebooks for a specific workspace

Source

pub async fn proxy_list( &self, workspace_id: Base64Uuid, ) -> Result<Vec<ProxySummary>>

List all proxies

Source

pub async fn proxy_create( &self, workspace_id: Base64Uuid, payload: NewProxy, ) -> Result<Proxy>

Create a new proxy

Source

pub async fn proxy_get( &self, workspace_id: Base64Uuid, proxy_name: &Name, ) -> Result<Proxy>

Retrieve a single proxy

Source

pub async fn proxy_delete( &self, workspace_id: Base64Uuid, proxy_name: &Name, ) -> Result<()>

Deletes a single proxy

Source

pub async fn proxy_relay( &self, workspace_id: Base64Uuid, proxy_name: &Name, data_source_name: &Name, provider_protocol_version: &str, payload: Vec<u8>, ) -> Result<Bytes>

Relays a query to invoke a provider on a remote proxy

Source

pub async fn proxy_config_schema( &self, workspace_id: Base64Uuid, proxy_name: &Name, data_source_name: &Name, ) -> Result<Bytes>

Relay a query to call ‘get_config_schema’ from a provider on a remote proxy

Source

pub async fn proxy_create_cells( &self, workspace_id: Base64Uuid, proxy_name: &Name, data_source_name: &Name, payload: Vec<u8>, ) -> Result<Bytes>

Relay a query to call ‘create_cells’ from a provider on a remote proxy

Source

pub async fn proxy_extract_data( &self, workspace_id: Base64Uuid, proxy_name: &Name, data_source_name: &Name, payload: Vec<u8>, ) -> Result<Bytes>

Relay a query to call ‘extract_data’ from a provider on a remote proxy

Source

pub async fn proxy_invoke( &self, workspace_id: Base64Uuid, proxy_name: &Name, data_source_name: &Name, payload: Vec<u8>, ) -> Result<Bytes>

Relays a query to invoke a provider on a remote proxy

Source

pub async fn proxy_supported_query_types( &self, workspace_id: Base64Uuid, proxy_name: &Name, data_source_name: &Name, ) -> Result<Bytes>

Relay a query to call ‘get_supported_query_types’ from a provider on a remote proxy

Search for notebooks

Source

pub async fn snippet_list( &self, workspace_id: Base64Uuid, sort_by: Option<&str>, sort_direction: Option<&str>, ) -> Result<Vec<SnippetSummary>>

List the snippets that have been uploaded

Source

pub async fn snippet_create( &self, workspace_id: Base64Uuid, payload: NewSnippet, ) -> Result<Snippet>

Create a new snippet

Source

pub async fn snippet_get( &self, workspace_id: Base64Uuid, snippet_name: &Name, ) -> Result<Snippet>

Retrieves a specified snippet from a workspace

Source

pub async fn snippet_delete( &self, workspace_id: Base64Uuid, snippet_name: &Name, ) -> Result<()>

Deletes a specified snippet from a workspace

Source

pub async fn snippet_update( &self, workspace_id: Base64Uuid, snippet_name: &Name, payload: UpdateSnippet, ) -> Result<Snippet>

Updates a specified snippet from a workspace

Source

pub async fn snippet_expand( &self, workspace_id: Base64Uuid, snippet_name: &Name, ) -> Result<Vec<Cell>>

Expand the snippet and return the array of cells (without inserting them into a specific notebook)

Source

pub async fn template_list( &self, workspace_id: Base64Uuid, sort_by: Option<&str>, sort_direction: Option<&str>, ) -> Result<Vec<TemplateSummary>>

Retrieve all the templates that have been uploaded

Source

pub async fn template_create( &self, workspace_id: Base64Uuid, payload: NewTemplate, ) -> Result<Template>

Create a new template

Source

pub async fn template_get( &self, workspace_id: Base64Uuid, template_name: &Name, ) -> Result<Template>

Retrieves a specified template

Source

pub async fn template_delete( &self, workspace_id: Base64Uuid, template_name: &Name, ) -> Result<()>

Deletes a specified template

Source

pub async fn template_update( &self, workspace_id: Base64Uuid, template_name: &Name, payload: UpdateTemplate, ) -> Result<Template>

Updates a specified template

Source

pub async fn template_expand( &self, workspace_id: Base64Uuid, template_name: &Name, payload: TemplateExpandPayload, ) -> Result<Notebook>

Expand the template into a notebook

Source

pub async fn trigger_list( &self, workspace_id: Base64Uuid, ) -> Result<Vec<Trigger>>

List all created triggers in the workspace

Source

pub async fn trigger_create( &self, workspace_id: Base64Uuid, payload: NewTrigger, ) -> Result<Trigger>

Creates a new trigger for a template

Source

pub async fn workspace_user_list( &self, workspace_id: Base64Uuid, sort_by: Option<&str>, sort_direction: Option<&str>, ) -> Result<Vec<Membership>>

List all users for a workspace

Source

pub async fn workspace_user_remove( &self, workspace_id: Base64Uuid, user_id: Base64Uuid, ) -> Result<()>

Removes a user from the workspace

Source

pub async fn workspace_user_update( &self, workspace_id: Base64Uuid, user_id: Base64Uuid, payload: UpdateWorkspaceUser, ) -> Result<User>

Updates the user within a workspace

Source

pub async fn view_list( &self, workspace_id: Base64Uuid, sort_by: Option<&str>, sort_direction: Option<&str>, page: Option<i32>, limit: Option<i32>, ) -> Result<Vec<View>>

Retrieves all views

Source

pub async fn view_create( &self, workspace_id: Base64Uuid, payload: NewView, ) -> Result<View>

Creates a new view

Source

pub async fn view_get( &self, workspace_id: Base64Uuid, view_name: &Name, ) -> Result<View>

Retrieves a single view

Source

pub async fn view_delete( &self, workspace_id: Base64Uuid, view_name: &Name, ) -> Result<()>

Deletes an existing view

Source

pub async fn view_update( &self, workspace_id: Base64Uuid, view_name: &Name, payload: UpdateView, ) -> Result<View>

Updates an existing view

Source

pub async fn webhook_list( &self, workspace_id: Base64Uuid, page: Option<i32>, limit: Option<i32>, ) -> Result<Vec<Webhook>>

Retrieve all webhooks for a specific workspace

Source

pub async fn webhook_create( &self, workspace_id: Base64Uuid, payload: NewWebhook, ) -> Result<Webhook>

Create a new webhook. Upon execution of this route, a test event (“ping”) will be sent to the endpoint. If sending the ping event fails, the webhook will still be created, but it will be disabled. Please check the response of this endpoint to see whenever enabled = false, and if that is the case, check the latest delivery to see why. Once the endpoint has been fixed, you can re-deliver the ping payload and if that works, manually re-enable the webhook again.

Source

pub async fn webhook_delete( &self, workspace_id: Base64Uuid, webhook_id: Base64Uuid, ) -> Result<()>

Deletes an existing webhook

Source

pub async fn webhook_update( &self, workspace_id: Base64Uuid, webhook_id: Base64Uuid, payload: UpdateWebhook, ) -> Result<Webhook>

Updates an existing webhook. Upon execution of this route, a test event (“ping”) will be sent to the endpoint. If sending the ping event fails, the webhook will still be updated, but will be disabled. Please check the response of this endpoint to see whenever enabled = false, and if that is the case (and not manually requested), check the latest delivery to see why. Once the endpoint has been fixed, you can re-deliver the ping payload and if that works, manually re-enable the webhook again.

Source

pub async fn webhook_delivery_list( &self, workspace_id: Base64Uuid, webhook_id: Base64Uuid, page: Option<i32>, limit: Option<i32>, ) -> Result<Vec<WebhookDeliverySummary>>

Retrieve a list of deliveries for a specific webhook

Source

pub async fn webhook_delivery_get( &self, workspace_id: Base64Uuid, webhook_id: Base64Uuid, delivery_id: Base64Uuid, ) -> Result<WebhookDelivery>

Retrieve information about a specific delivery for a specific webhook

Source

pub async fn webhook_delivery_resend( &self, workspace_id: Base64Uuid, webhook_id: Base64Uuid, delivery_id: Base64Uuid, ) -> Result<()>

Resend a specific delivery

Trait Implementations§

Source§

impl Debug for ApiClient

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

impl<T> BindgenSerializable for T